mirror of
https://github.com/bs-community/blessing-skin-server.git
synced 2025-03-07 15:16:40 +08:00
Expect only new passwords to be at least 6 characters
This commit is contained in:
parent
54a0ac3618
commit
235141e2d9
@ -111,7 +111,7 @@ class UserController extends Controller
|
||||
|
||||
case 'password':
|
||||
$this->validate($request, [
|
||||
'current_password' => 'required|min:8|max:16',
|
||||
'current_password' => 'required|min:6|max:16',
|
||||
'new_password' => 'required|min:8|max:16'
|
||||
]);
|
||||
|
||||
@ -126,7 +126,7 @@ class UserController extends Controller
|
||||
case 'email':
|
||||
$this->validate($request, [
|
||||
'new_email' => 'required|email',
|
||||
'password' => 'required|min:8|max:16'
|
||||
'password' => 'required|min:6|max:16'
|
||||
]);
|
||||
|
||||
if ($users->get($request->input('new_email'), 'email')) {
|
||||
@ -143,7 +143,7 @@ class UserController extends Controller
|
||||
|
||||
case 'delete':
|
||||
$this->validate($request, [
|
||||
'password' => 'required|min:8|max:16'
|
||||
'password' => 'required|min:6|max:16'
|
||||
]);
|
||||
|
||||
if (!$this->user->verifyPassword($request->input('password')))
|
||||
|
Loading…
Reference in New Issue
Block a user