Skip to content
Open
Show file tree
Hide file tree
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
3 changes: 2 additions & 1 deletion auth_saml/models/res_users_saml.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,6 @@ def create(self, vals_list):
# Redefined to remove password if necessary
result = super().create(vals_list)
if not self.env["res.users"].allow_saml_and_password():
result.mapped("user_id").write({"password": False})
# Avoid sending a security mail by using this method instead of a write
result.mapped("user_id")._set_password_blank()
return result
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix sending a mail when configuring SAML for a user.