Expand verify password routine.

This commit is contained in:
James Cole
2017-08-08 16:30:21 +02:00
parent e7b5cf66d2
commit 5d1e90d29c
6 changed files with 69 additions and 21 deletions

View File

@@ -51,7 +51,7 @@ class UserFormRequest extends Request
return [
'id' => 'required|exists:users,id',
'email' => 'email|required',
'password' => 'confirmed',
'password' => 'confirmed|secure_password',
'blocked_code' => 'between:0,30',
'blocked' => 'between:0,1|numeric',
];

View File

@@ -28,17 +28,6 @@ class UserRegistrationRequest extends Request
return true;
}
/**
* @return array
*/
public function getUserData(): array
{
return [
'email' => $this->string('email'),
'password' => $this->string('password'),
];
}
/**
* @return array
*/