lazy ass fix

This commit is contained in:
some weird guy
2023-08-24 12:42:57 -07:00
parent 157d1199b9
commit 5b5bbc859e
+1
View File
@@ -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)