Skip to content
This repository has been archived by the owner on Oct 22, 2019. It is now read-only.

Commit

Permalink
Include minimum password length in change password form. Error messag…
Browse files Browse the repository at this point in the history
…e to the user should be included.
  • Loading branch information
gsfakianakis committed Aug 18, 2016
1 parent ae4a8ca commit 2dba684
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion userena/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -610,7 +610,7 @@ def password_change(request, username, template_name='userena/password_form.html

if request.method == "POST":
form = pass_form(user=user, data=request.POST)
if form.is_valid():
if form.is_valid() and ( len(request.POST.get('new_password1')) >= userena_settings.USERENA_PASSWORD_MIN_LENGTH):
form.save()

# Send a signal that the password has changed
Expand Down

0 comments on commit 2dba684

Please sign in to comment.