1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2026-03-18 18:07:22 +01:00

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

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 {