From b4883bd9c3c08bdecc4d1c01ecb1650580cd87ef Mon Sep 17 00:00:00 2001 From: Sylvain LE GAL Date: Wed, 14 May 2014 15:27:40 +0200 Subject: [PATCH] [FIX] bug #1319391; --- auth_admin_passkey/model/res_users.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auth_admin_passkey/model/res_users.py b/auth_admin_passkey/model/res_users.py index f41554e9e..6d050108c 100644 --- a/auth_admin_passkey/model/res_users.py +++ b/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: