Skip to content
Snippets Groups Projects
Unverified Commit ea6ba53c authored by Morris Jobke's avatar Morris Jobke Committed by GitHub
Browse files

Merge pull request #14314 from nextcloud/enh/save_query

No need to check 2fa state on apptoken logins
parents ee5e7678 8c778827
No related branches found
No related tags found
No related merge requests found
......@@ -95,7 +95,8 @@ class TwoFactorMiddleware extends Middleware {
if ($this->userSession->isLoggedIn()) {
$user = $this->userSession->getUser();
if ($this->twoFactorManager->isTwoFactorAuthenticated($user)) {
if ($this->session->exists('app_password') || $this->twoFactorManager->isTwoFactorAuthenticated($user)) {
$this->checkTwoFactor($controller, $methodName, $user);
} else if ($controller instanceof TwoFactorChallengeController) {
// Allow access to the two-factor controllers only if two-factor authentication
......
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