mirror of
https://github.com/Mistake35/Cedar-Django.git
synced 2026-07-18 00:21:14 +10:00
lazy ass fix
This commit is contained in:
@@ -369,6 +369,7 @@ def forgot_passwd(request):
|
||||
if not request.POST['password'] == request.POST['password_again']:
|
||||
return HttpResponseBadRequest("Your passwords don't match.")
|
||||
try:
|
||||
new = request.POST['password']
|
||||
validate_password(new, user=user)
|
||||
except ValidationError as error:
|
||||
return HttpResponseBadRequest(error)
|
||||
|
||||
Reference in New Issue
Block a user