forked from amisha-w/PackTravel
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from Prachit99/dev
Fixed Password visibility issue
- Loading branch information
Showing
2 changed files
with
2 additions
and
2 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ class RegisterForm(forms.ModelForm): | |
first_name = forms.CharField(required=True, widget=forms.TextInput(attrs={'placeholder': 'First Name', 'class': 'form-control'})) | ||
last_name = forms.CharField(required=True, widget=forms.TextInput(attrs={'placeholder': 'Last Name', 'class': 'form-control'})) | ||
email = forms.EmailField(required=True, max_length=60, widget=forms.EmailInput(attrs={'placeholder': '[email protected]', 'class': 'form-control'})) | ||
password1 = forms.CharField(required=True, widget=forms.TextInput(attrs={'placeholder': 'Password','class': "form-control"})) | ||
password1 = forms.CharField(required=True, widget=forms.PasswordInput(attrs={'placeholder': 'Password','class': "form-control"})) | ||
phone_number = forms.CharField(required=True, max_length=11, widget=forms.TextInput(attrs={'placeholder': 'Phone Number', 'class': 'form-control'})) | ||
|
||
class Meta: | ||
|
@@ -26,7 +26,7 @@ class Meta: | |
|
||
class LoginForm(forms.ModelForm): | ||
username = forms.CharField(required=True, widget=forms.TextInput(attrs={'placeholder': 'Enter your username', 'class': "form-control"})) | ||
password = forms.CharField(required=True, widget=forms.TextInput(attrs={'placeholder': 'Password', 'class': "form-control"})) | ||
password = forms.CharField(required=True, widget=forms.PasswordInput(attrs={'placeholder': 'Password', 'class': "form-control"})) | ||
class Meta: | ||
model = User | ||
fields = ('username', 'password') |