Skip to content
This repository has been archived by the owner on Jan 26, 2021. It is now read-only.

Update forms.py #1117

Draft
wants to merge 1 commit into
base: develop
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions vms/registration/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@


class UserForm(forms.ModelForm):
# password not visible when user types it out
password = forms.CharField(widget=forms.PasswordInput())
# Added toggle eye button to view/hide the password
password = forms.CharField(widget=forms.PasswordInput(attrs={'placeholder':'********','autocomplete':'off','data-toggle': 'password'})
confirm_password = forms.CharField(widget=forms.PasswordInput())

def clean_password(self):
Expand Down