mirror of
https://github.com/pelican-dev/panel.git
synced 2025-05-20 01:44:45 +02:00
Include that 30 second limit on other 2FA checks
This commit is contained in:
parent
a93adce303
commit
4be9e30eee
@ -105,7 +105,7 @@ class User extends Model implements AuthenticatableContract, AuthorizableContrac
|
||||
*/
|
||||
public function toggleTotp($token)
|
||||
{
|
||||
if (! Google2FA::verifyKey($this->totp_secret, $token)) {
|
||||
if (! Google2FA::verifyKey($this->totp_secret, $token, 1)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user