diff --git a/auth_from_http_remote_user/controllers/main.py b/auth_from_http_remote_user/controllers/main.py index f91d50508..5214f125d 100644 --- a/auth_from_http_remote_user/controllers/main.py +++ b/auth_from_http_remote_user/controllers/main.py @@ -93,7 +93,6 @@ class Home(main.Home): # generate a specific key for authentication key = randomString(utils.KEY_LENGTH, '0123456789abcdef') res_users.write(cr, SUPERUSER_ID, [user_id], {'sso_key': key}) - login = res_users.browse(cr, SUPERUSER_ID, user_id).login request.session.authenticate(db_name, login=login, password=key, uid=user_id) except http.AuthenticationError, e: