Skip to content
Snippets Groups Projects
Commit b690ffea authored by Jan-Hendrik Willms's avatar Jan-Hendrik Willms Committed by Elmar Ludwig
Browse files

fixes #3596

Closes #3596

Merge request studip/studip!2492
parent 13e5aa83
No related branches found
No related tags found
No related merge requests found
......@@ -90,12 +90,15 @@ final class TwoFactorAuth
return;
}
$secret = TFASecret::find($user->id);
if (!$secret) {
if (!self::isEnabledForUser($user)) {
return;
}
$this->secret = $secret;
if (!TFASecret::exists($user->id)) {
return;
}
$this->secret = TFASecret::find($user->id);
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment