Skip to content

Commit 4be9e30

Browse files
committed
Include that 30 second limit on other 2FA checks
1 parent a93adce commit 4be9e30

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Models/User.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ public function permissions()
105105
*/
106106
public function toggleTotp($token)
107107
{
108-
if (! Google2FA::verifyKey($this->totp_secret, $token)) {
108+
if (! Google2FA::verifyKey($this->totp_secret, $token, 1)) {
109109
return false;
110110
}
111111

0 commit comments

Comments
 (0)