mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-12-23 07:23:46 +00:00
[Users] Archive and Disabled accounts can't reset their passords
This commit is contained in:
parent
a9ec23c260
commit
8f23bada4b
1 changed files with 2 additions and 1 deletions
|
@ -1034,7 +1034,8 @@ def reset_password(request):
|
|||
try:
|
||||
user = User.objects.get(
|
||||
pseudo=userform.cleaned_data['pseudo'],
|
||||
email=userform.cleaned_data['email']
|
||||
email=userform.cleaned_data['email'],
|
||||
state__in=[0,3],
|
||||
)
|
||||
except User.DoesNotExist:
|
||||
messages.error(request, _("The user doesn't exist."))
|
||||
|
|
Loading…
Reference in a new issue