Skip to content

Commit

Permalink
Merge pull request #4861 from kobotoolbox/4860-hide-passwpord-help-text
Browse files Browse the repository at this point in the history
Hide password help text on registration form
  • Loading branch information
jamesrkiger authored Mar 11, 2024
2 parents f6d55a9 + 37fb5c0 commit 5741633
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions kobo/apps/accounts/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,10 @@ def __init__(self, *args, **kwargs):
for field_name in ['username', 'email', 'password1', 'password2']:
if field_name in self.fields:
self.fields[field_name].widget.attrs['placeholder'] = ''
if 'password1' in self.fields:
# Remove `help_text` on purpose since some guidance is provided by
# Constance setting. Moreover it is redundant with error messages.
self.fields['password1'].help_text = ''
if 'password2' in self.fields:
self.fields['password2'].label = t('Password confirmation')
if 'email' in self.fields:
Expand Down

0 comments on commit 5741633

Please sign in to comment.