Exemplo n.º 1
0
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])
Exemplo n.º 2
0
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')) 
Exemplo n.º 3
0
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
Exemplo n.º 4
0
class LoginForm(Form):
    username = fields.TextField('Email Address', validators=[REQUIRED])
    password = fields.PasswordField('Password', validators=[REQUIRED])
    remember = fields.BooleanField('Keep me signed in')
Exemplo n.º 5
0
class RegistrationForm(Form):
    username = fields.TextField('Username', validators=[REQUIRED])
    password = fields.PasswordField('Password', validators=[REQUIRED])
    password_confirm = fields.PasswordField('Confirm the password',
                                            validators=[REQUIRED])