mirror of
https://github.com/simple-login/app.git
synced 2025-09-13 01:55:48 +08:00
allow user who has TOTP enabled to continue using the mobile app
This commit is contained in:
parent
2c1daf5bb1
commit
e68eab44b0
1 changed files with 3 additions and 1 deletions
|
@ -56,6 +56,8 @@ def auth_login():
|
||||||
elif not user.activated:
|
elif not user.activated:
|
||||||
return jsonify(error="Account not activated"), 400
|
return jsonify(error="Account not activated"), 400
|
||||||
elif user.fido_enabled():
|
elif user.fido_enabled():
|
||||||
|
# allow user who has TOTP enabled to continue using the mobile app
|
||||||
|
if not user.enable_otp:
|
||||||
return jsonify(error="Currently we don't support FIDO on mobile yet"), 403
|
return jsonify(error="Currently we don't support FIDO on mobile yet"), 403
|
||||||
|
|
||||||
return jsonify(**auth_payload(user, device)), 200
|
return jsonify(**auth_payload(user, device)), 200
|
||||||
|
|
Loading…
Add table
Reference in a new issue