Closed digitalWestie closed 5 years ago
Need to add the password requirements somewhere logical.
Finding it hard to pin down the password requirements although it seems to be a minimum of 8 characters.
Trying to do a bit of research for user experience best practices with password creation.
Tried to use the error style boxes to give the password requirements although struggling to unpick the way it's being handled.
Experimented with trying to update the signup model password input fields to change the behaviour.
password1 = forms.CharField(
label="Password",
strip=False,
widget=forms.PasswordInput(attrs={
'autocomplete': 'new-password',
}),
help_text='Minimum of 8 characters.',
)
Unfortunately, the help_text isn't appearing. Need to continue experimenting.
Managed to get the help_text to display the password requirements as below:
The password requirements may not be obvious although if they appear when the user selects the field it might be clearer?
Also the autocomplete could is annoying because it autofills the postcode field withmy email address and a single blanked password. If the user is creating a new account they shouldn't have any autocomplete information?
Before the user clicks or tabs to the password field.
After the user click or tabs to the password field.
Had to add help_text
to both fields otherwise, the formatting was off.
Also found that the help_text was clearer when above, otherwise it would be obscured by the autofill.
Also used .focus()
rather than .click()
as tabbing by accessibility users wouldn't show the password requirements.
With autocomplete settings unchanged:
With new password setting as below:
widget=forms.PasswordInput(attrs={
'autocomplete': 'new-password',
}),
I think this is a usability improvement as erroneously having the email in the postcode field is confusing as well as a hidden password populating which the user has to overwrite.
Merged into master.
Just a sentence beneath password. Perhaps check django user docs for confirmation it's just 8 characters required.