예제 #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])
예제 #2
0
파일: forms.py 프로젝트: dudarev/ololog
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')) 
예제 #3
0
파일: forms.py 프로젝트: dudarev/ololog
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
예제 #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')
예제 #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])