-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(auth): no "unknown_account" email message when random password r…
…eset
- Loading branch information
1 parent
5e305d2
commit 79cc62a
Showing
2 changed files
with
12 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
from __future__ import annotations | ||
|
||
from allauth.account.forms import ResetPasswordForm as BaseResetPasswordForm | ||
|
||
|
||
class ResetPasswordForm(BaseResetPasswordForm): | ||
def _send_unknown_account_mail(self, request, email): | ||
# allauth==0.54.0 sends an email in case of password reset and email not found | ||
# we override this method to prevent sending email in case of email not founding | ||
|
||
return |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters