summaryrefslogtreecommitdiff
path: root/app/forms.py
diff options
context:
space:
mode:
authorKaran Jayachandra <mail@karanjayachandra.com>2025-07-06 15:13:27 +0200
committerKaran Jayachandra <mail@karanjayachandra.com>2025-07-06 15:13:27 +0200
commitceb264b6bdfed8c51e54deed2b6132fecff3934d (patch)
tree6a403d915e96fa0b090bd362ebf6fb8048fd5de8 /app/forms.py
parent279faac0323da94535e6ee3b82458f858ec7178a (diff)
Added the basic login
Diffstat (limited to 'app/forms.py')
-rw-r--r--app/forms.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/app/forms.py b/app/forms.py
new file mode 100644
index 0000000..504824a
--- /dev/null
+++ b/app/forms.py
@@ -0,0 +1,9 @@
+from flask_wtf import FlaskForm
+from wtforms.validators import DataRequired
+from wtforms import StringField, PasswordField, BooleanField, SubmitField
+
+class LoginForm(FlaskForm):
+ username = StringField("Username", validators=[DataRequired()])
+ password = PasswordField("Password", validators=[DataRequired()])
+ remember_me = BooleanField("Remember Me")
+ submit = SubmitField("Sign In") \ No newline at end of file