-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
36 changed files
with
25,424 additions
and
10 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# encoding: utf-8 | ||
# create forms here | ||
|
||
from flask_wtf import FlaskForm | ||
from wtforms.validators import DataRequired, EqualTo, Optional, Email, Length | ||
from wtforms import StringField, PasswordField, SubmitField, RadioField | ||
|
||
|
||
class signupForm(FlaskForm): | ||
email = StringField(validators=[DataRequired(), Email(message='Invalid email add')]) | ||
username = StringField(validators=[DataRequired(), Length(3, 15, message='Username length between 3-15')]) | ||
password = PasswordField(validators=[DataRequired(), Length(6, 15, message='Password length between 6-15')]) | ||
confirm = PasswordField(validators=[DataRequired(), EqualTo('password', message='Password not matches')]) | ||
submit = SubmitField() | ||
|
||
|
||
class loginForm(FlaskForm): | ||
email = StringField(validators=[DataRequired(), Email(message='Invalid email add')]) | ||
password = PasswordField(validators=[DataRequired(), Length(6, 15, message='Password length between 6-15')]) | ||
submit = SubmitField() |
Empty file.
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
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 |
---|---|---|
|
@@ -3,4 +3,4 @@ | |
|
||
from flask import Blueprint | ||
main = Blueprint('main', __name__) | ||
from . import forms, views | ||
from . import views |
Binary file not shown.
Binary file not shown.
Oops, something went wrong.