Skip to content

Commit 7ae381c

Browse files
committed
consistency
1 parent 97abd36 commit 7ae381c

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

packages/panels/src/Auth/MultiFactor/App/Actions/DisableAppAuthenticationAction.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public static function make(AppAuthentication $appAuthentication): Action
5656

5757
RateLimiter::hit($rateLimitingKey);
5858

59-
if (is_string($value) && $appAuthentication->verifyCode($value)) {
59+
if (is_string($value) && $appAuthentication->verifyCode($value, shouldPreventCodeReuse: true)) {
6060
return;
6161
}
6262

packages/panels/src/Auth/MultiFactor/App/Actions/RegenerateAppAuthenticationRecoveryCodesAction.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public static function make(AppAuthentication $appAuthentication): Action
5555

5656
RateLimiter::hit($rateLimitingKey);
5757

58-
if ($appAuthentication->verifyCode($value)) {
58+
if ($appAuthentication->verifyCode($value, shouldPreventCodeReuse: true)) {
5959
return;
6060
}
6161

0 commit comments

Comments
 (0)