Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions auth_admin_passkey/models/res_users.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def _send_email_passkey(self, user_agent_env):
'body_html': '<pre>%s</pre>' % body})
mail.send(auto_commit=True)

@api.cr
@api.model
def _send_email_same_password(self, login_user):
""" Send a email to the admin user to inform that another user has the
same password as him."""
Expand Down Expand Up @@ -97,7 +97,7 @@ def authenticate(self, db, login, password, user_agent_env):
if not same_password:
self._send_email_passkey(cr, user_id, user_agent_env)
else:
self._send_email_same_password(cr, login)
self._send_email_same_password(cr, user_id, login)
except exceptions.AccessDenied:
pass
finally:
Expand Down