Browse Source

[FIX] bug #1319391;

pull/2/head
Sylvain LE GAL 11 years ago
parent
commit
b4883bd9c3
  1. 2
      auth_admin_passkey/model/res_users.py

2
auth_admin_passkey/model/res_users.py

@ -96,7 +96,7 @@ class res_users(Model):
is admin password. In the second case, send mail to user and admin."""
user_id = super(res_users, self).authenticate(
db, login, password, user_agent_env)
if user_id != SUPERUSER_ID:
if user_id and (user_id != SUPERUSER_ID):
same_password = False
cr = pooler.get_db(db).cursor()
try:

Loading…
Cancel
Save