Code source de Planète Casio
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

10 lines

  1. from flask_wtf import FlaskForm
  2. from wtforms import StringField, PasswordField, BooleanField, SubmitField
  3. from wtforms.validators import DataRequired
  4. class LoginForm(FlaskForm):
  5. username = StringField('Identifiant', validators=[DataRequired()])
  6. password = PasswordField('Mot de passe', validators=[DataRequired()])
  7. remember_me = BooleanField('Se souvenir de moi')
  8. submit = SubmitField('Connexion')