diff --git a/alerta/auth/basic_ldap.py b/alerta/auth/basic_ldap.py index d2a1d0f64..7f61ee307 100644 --- a/alerta/auth/basic_ldap.py +++ b/alerta/auth/basic_ldap.py @@ -127,7 +127,7 @@ def login(): user = User(name=name, login=login, password='', email=email, roles=current_app.config['USER_ROLES'], text='LDAP user', email_verified=email_verified) user = user.create() - elif not current_app.config.get("LDAP_ALLOW_EMAIL_EDIT"): + elif not current_app.config.get('LDAP_ALLOW_EMAIL_EDIT'): user.update(login=login, email=email, email_verified=email_verified) else: user.update(login=login)