mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-19 23:03:45 +02:00
Improved TOTp handling in login.
Cleaned up the code a bit, also checks TOTP before attemping to verify user. This addresses the potential for an attacker to try at a password and/or confirm that the password is correct unless they have a valid TOTP code for the request. A failed TOTP response will trigger a throttle count on the login as well.
This commit is contained in:
@@ -21,5 +21,6 @@ return [
|
||||
'sendlink' => 'Send Password Reset Link',
|
||||
'emailsent' => 'Your password reset email is on its way.',
|
||||
'remeberme' => 'Remeber Me',
|
||||
'totp_failed' => 'The TOTP token provided was invalid. Please ensure that the token generated by your device was valid.'
|
||||
|
||||
];
|
||||
|
||||
@@ -12,7 +12,6 @@ return [
|
||||
'password' => 'Password',
|
||||
'email' => 'Email',
|
||||
'whoops' => 'Whoops',
|
||||
'failed' => 'Your request could not be processed. Please try again later.',
|
||||
'success' => 'Success',
|
||||
'location' => 'Location',
|
||||
'node' => 'Node',
|
||||
|
||||
Reference in New Issue
Block a user