This commit is contained in:
2023-12-03 15:37:42 +05:00
parent 4ef7c7f71f
commit 5f506bab65

View File

@@ -28,7 +28,7 @@ class ResetPasswordController extends Controller
$request->validate([
'username' => ['required', 'string', 'max:250', 'exists:users,username'],
'verification' => ['nullable', 'integer', 'digits:5'],
'password' => ['nullable', 'string', 'min:8', 'confirmed'],
'password' => ['bail', 'nullable', 'string', 'min:8', 'confirmed'],
]);
if ($request->filled('verification')) {