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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user