support 'push' also in mfa_priority

This commit is contained in:
Tino Lange
2020-05-08 09:35:06 +02:00
parent d9c3b2198c
commit 7fbaeee604
+1 -1
View File
@@ -188,7 +188,7 @@ def load_conf(cf):
def mfa_priority(conf, ftype, fprovider):
if ftype == 'token:software:totp' or (ftype, fprovider) == ('token', 'symantec'):
ftype = 'totp'
if ftype not in ['totp', 'sms', 'webauthn']:
if ftype not in ['totp', 'sms', 'push', 'webauthn']:
return 0
mfa_order = conf.get('mfa_order', '')
if ftype in mfa_order: