Include that 30 second limit on other 2FA checks
This commit is contained in:
parent
a93adce303
commit
4be9e30eee
1 changed files with 1 additions and 1 deletions
|
@ -105,7 +105,7 @@ class User extends Model implements AuthenticatableContract, AuthorizableContrac
|
||||||
*/
|
*/
|
||||||
public function toggleTotp($token)
|
public function toggleTotp($token)
|
||||||
{
|
{
|
||||||
if (! Google2FA::verifyKey($this->totp_secret, $token)) {
|
if (! Google2FA::verifyKey($this->totp_secret, $token, 1)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue