Skip to content

Commit

Permalink
Update auth_admin_passkey/models/res_users.py
Browse files Browse the repository at this point in the history
Co-authored-by: Sylvain LE GAL <[email protected]>
  • Loading branch information
moncefarajdal and legalsylvain authored Oct 15, 2024
1 parent 53b8453 commit 3376bef
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion auth_admin_passkey/models/res_users.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ def _prepare_email_passkey(self, login_user):
"login": login_user.login,
"login_date": datetime.now().strftime("%Y-%m-%d %H:%M:%S"),
}
return subject, "<pre>{}</pre>".format(body)
return subject, f"<pre>{body}</pre>"`

looks lighter.

def _check_credentials(self, password, env):
try:
Expand Down

0 comments on commit 3376bef

Please sign in to comment.