Download app/forms.py from rastof9/ads: direct link, hf CLI and curl.
- Browser
- Download file 692 Bytes
-
https://huggingface.co/spaces/rastof9/ads/resolve/main/app/forms.py
- Command line
-
hf download hf://spaces/rastof9/ads/app/forms.py
-
curl -L -o forms.py https://huggingface.co/spaces/rastof9/ads/resolve/main/app/forms.py
692 Bytes
| from flask_wtf import FlaskForm | |
| from wtforms import StringField, PasswordField, SubmitField | |
| from wtforms.validators import DataRequired, Email, EqualTo | |
| class LoginForm(FlaskForm): | |
| email = StringField('Email', validators=[DataRequired(), Email()]) | |
| password = PasswordField('Password', validators=[DataRequired()]) | |
| submit = SubmitField('Login') | |
| class RegistrationForm(FlaskForm): | |
| email = StringField('Email', validators=[DataRequired(), Email()]) | |
| password = PasswordField('Password', validators=[DataRequired()]) | |
| password2 = PasswordField( | |
| 'Repeat Password', validators=[DataRequired(), EqualTo('password')]) | |
| submit = SubmitField('Register') |