Address review feedback, thanks @hija

This commit is contained in:
Felix Spöttel
2020-09-04 20:28:15 +02:00
parent b0df35eba0
commit 481a333dc0
3 changed files with 6 additions and 8 deletions
+1 -1
View File
@@ -554,7 +554,7 @@ def get_mfa_state(email, env):
c.execute('SELECT secret, mru_token FROM totp_credentials WHERE user_email=?', (email,))
credential_row = c.fetchone()
if (credential_row == None):
if credential_row is None:
return { 'type': None }
return {