]> source.dussan.org Git - nextcloud-server.git/commit
No need to check 2fa state on apptoken logins 14314/head
authorRoeland Jago Douma <roeland@famdouma.nl>
Wed, 20 Feb 2019 16:40:40 +0000 (17:40 +0100)
committerRoeland Jago Douma <roeland@famdouma.nl>
Wed, 20 Feb 2019 16:40:40 +0000 (17:40 +0100)
commit8c778827941ecbd08daf8108fba056a05b85e309
tree9fdb05dcd6f6957412f16272bee3ad23cf5ec40c
parentbeba18224898777b559f3a657d890c0e9bdd7864
No need to check 2fa state on apptoken logins

If you login with an apptoken there is no need to check 2FA state as
this does not apply to apptokens. Not checking saves us a query on each
request made from a client.

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
core/Middleware/TwoFactorMiddleware.php