summaryrefslogtreecommitdiff
path: root/tbc/forms.py
diff options
context:
space:
mode:
authorhardythe12014-04-09 17:24:10 +0530
committerhardythe12014-04-09 17:24:10 +0530
commit9a8b53230e7fcf457ce5668f7322844bcde1b196 (patch)
treefb68e989240cfe197d4150f565d10589dccde77f /tbc/forms.py
parent1b88bd5296f5a748b574ae68549d874c6fa95c7b (diff)
downloadPython-TBC-Interface-9a8b53230e7fcf457ce5668f7322844bcde1b196.tar.gz
Python-TBC-Interface-9a8b53230e7fcf457ce5668f7322844bcde1b196.tar.bz2
Python-TBC-Interface-9a8b53230e7fcf457ce5668f7322844bcde1b196.zip
adding password reset form
Diffstat (limited to 'tbc/forms.py')
-rw-r--r--tbc/forms.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/tbc/forms.py b/tbc/forms.py
index 3fb9932..8fc6e22 100644
--- a/tbc/forms.py
+++ b/tbc/forms.py
@@ -42,6 +42,16 @@ class UserLoginForm(forms.Form):
'placeholder': 'Password'}), label='')
+class PasswordResetForm(forms.Form):
+ new_password = forms.CharField(widget=forms.PasswordInput(attrs={
+ 'class': 'form-control',
+ 'placeholder': 'New Password'}), label='')
+ confirm_new_password = forms.CharField(widget=forms.PasswordInput(attrs={
+ 'class': 'form-control',
+ 'placeholder': 'Confirm New Password'}), label='')
+
+
+
class BookForm(forms.ModelForm):
def __init__(self, *args, **kwargs):
super(BookForm, self).__init__(*args, **kwargs)