Exemple #1
0
class EditProfileForm(forms.Form):

    nick = fields.RegexField(label='Имя',
                             regex=conf.accounts_settings.NICK_REGEX,
                             min_length=conf.accounts_settings.NICK_MIN_LENGTH,
                             max_length=conf.accounts_settings.NICK_MAX_LENGTH)

    email = fields.EmailField(label='Email (логин)')

    password = fields.PasswordField(label='Новый пароль', required=False)
Exemple #2
0
class ResetPasswordForm(forms.Form):

    email = fields.EmailField(label='Email')
Exemple #3
0
class LoginForm(forms.Form):

    email = fields.EmailField(label='Email')
    password = fields.PasswordField(label='Пароль')
    remember = fields.BooleanField(label='Запомнить меня', required=False)