pull/2/head
Sylvain LE GAL 2014-05-14 15:27:40 +02:00
parent ed3a612a5c
commit b4883bd9c3
1 changed files with 1 additions and 1 deletions

View File

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