chore: upgrade to L9
BREAKING CHANGE: This commit updates the Laravel framework to version 9. Additionally, it also updates outdated and abandoned dependencies in the composer.json file. The resources/lang directory has also been moved to the repository's root directory.
This commit is contained in:
@@ -45,13 +45,13 @@ class UserDeleteRequest extends FormRequest
|
||||
{
|
||||
if (Auth::user()->has2FA()) {
|
||||
return [
|
||||
'currentPassword' => 'required|password:web',
|
||||
'currentPassword' => 'required|current_password:web',
|
||||
'otp' => 'required|integer|max:6',
|
||||
];
|
||||
}
|
||||
|
||||
return [
|
||||
'currentPassword' => 'required|password:web',
|
||||
'currentPassword' => 'required|current_password:web',
|
||||
];
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user