Commit a810adcb authored by o@immerda.ch's avatar o@immerda.ch
Browse files

fix npe for wrong sp ids

parent 173f82b2
Pipeline #8936 passed with stage
in 2 minutes and 41 seconds
...@@ -24,7 +24,7 @@ class IApi < Sinatra::Base ...@@ -24,7 +24,7 @@ class IApi < Sinatra::Base
user = AuthManager.auth(email, parsed_body, user = AuthManager.auth(email, parsed_body,
false, false,
unlock: parsed_body['unlock'], unlock: parsed_body['unlock'],
master_pw: info[:needs_master_pw], master_pw: info && info[:needs_master_pw],
trusted: true, trusted: true,
totp: parsed_body['totp'], totp: parsed_body['totp'],
webauthn: parsed_body['webauthn'], webauthn: parsed_body['webauthn'],
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment