過去に使用されたユーザー名で登録できないようにする
This commit is contained in:
parent
f132955be7
commit
73ee9f108b
@ -48,7 +48,7 @@ class RegisterController extends Controller
|
|||||||
protected function validator(array $data)
|
protected function validator(array $data)
|
||||||
{
|
{
|
||||||
$rules = [
|
$rules = [
|
||||||
'name' => 'required|string|regex:/^[a-zA-Z0-9_-]+$/u|max:15|unique:users',
|
'name' => 'required|string|regex:/^[a-zA-Z0-9_-]+$/u|max:15|unique:users|unique:deactivated_users',
|
||||||
'email' => 'required|string|email|max:255|unique:users',
|
'email' => 'required|string|email|max:255|unique:users',
|
||||||
'password' => 'required|string|min:6|confirmed'
|
'password' => 'required|string|min:6|confirmed'
|
||||||
];
|
];
|
||||||
|
Loading…
Reference in New Issue
Block a user