Skip to content
This repository was archived by the owner on Apr 19, 2025. It is now read-only.

Commit 1bb4de7

Browse files
committed
https://github.com/michaeldzjap/laravel-two-factor-authentication/pull/3#pullrequestreview-228254593
1 parent 6a5b68e commit 1bb4de7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/TwoFactorAuthenticable.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ public function setTwoFactorAuthId(string $id) : void
3131
// respect when 2fa is not set for user, never insert
3232
$this->twoFactorAuth->update(['id' => $id]);
3333
}
34-
elseif ($enabled === 'always') {
34+
35+
if ($enabled === 'always') {
3536
$this->upsertTwoFactorAuthId($id);
3637
}
3738
}

0 commit comments

Comments
 (0)