class RegistrationForm(Form): username = fields.TextField('Email Address', validators=[REQUIRED, validators.email()]) password = fields.PasswordField('Password', validators=[REQUIRED]) password_confirm = fields.PasswordField('Confirm the password', validators=[REQUIRED]) namespace = fields.TextField('Namespace', validators=[REQUIRED, unique_namespace]) timezone = fields.TextField('Timezone', validators=[REQUIRED])
class SigninForm(Form): # csrf_protection = True email = fields.TextField(_('Email'), [req, emailsize, emailformat]) password = fields.PasswordField(_('Password'), [req, passize]) remember = fields.BooleanField(_('Keep me signed in'))
class SignupForm(Form): # csrf_protection = True username = fields.TextField(_('User name'), [req, namesize]) email = fields.TextField(_('Email'), [req, emailsize, emailformat]) password = fields.PasswordField(_('New Password'), [req, passize]) # match
class LoginForm(Form): username = fields.TextField('Email Address', validators=[REQUIRED]) password = fields.PasswordField('Password', validators=[REQUIRED]) remember = fields.BooleanField('Keep me signed in')
class RegistrationForm(Form): username = fields.TextField('Username', validators=[REQUIRED]) password = fields.PasswordField('Password', validators=[REQUIRED]) password_confirm = fields.PasswordField('Confirm the password', validators=[REQUIRED])