def __init__(self, kind=None, *args, **kwds):
   self.kind = kind
   StringField.__init__(self, *args, **kwds)
Esempio n. 2
0
class LoginForm(Form):
    username = StringField('Username',
                           [InputRequired(message="Please enter your name.")])
    password = PasswordField(
        'Password', validators=[DataRequired(message="enter password")])
    submit = SubmitField('login')
Esempio n. 3
0
class UserForm(FlaskForm):
    username = StringField('Username', validators=[InputRequired()])
    email = EmailField('Email', validators=[InputRequired()])
    password = PasswordField('Password', validators=[InputRequired()])
    valid = StringField('Zugangstoken', validators=[InputRequired()])
Esempio n. 4
0
class LoginForm(FlaskForm):
    username = StringField('Username', validators=[DataRequired()], id='uname')
    password = PasswordField('Password', validators=[DataRequired()], id='pword')
    twofa = StringField('2FA - ENTER YOUR CELL NUMBER', validators=[DataRequired()], id='2fa')
    remember_me = BooleanField('Remember Me')
    submit = SubmitField('Sign In')
Esempio n. 5
0
class LoginForm(FlaskForm):
    name=StringField('用户名',validators=[DataRequired(),Length(1,32)])
    password=PasswordField('密码',validators=[DataRequired(),Length(1,20)])
    def get_user(self):
        return db.session.query(User).filter_by(name=self.name.data).first()
Esempio n. 6
0
class LoginForm(FlaskForm):
    email = StringField('Email', validators=[DataRequired(), Email()])
    password = PasswordField('Password', validators=[DataRequired()])
    submit = SubmitField('Log In')
Esempio n. 7
0
class Edit(FlaskForm):
    access=PasswordField('Access Code',validators=[DataRequired()])
    information_block = StringField('Information Block',validators=[DataRequired()])
    attribute = StringField('Attribute', validators=[DataRequired()])
    description = StringField('Description', validators=[DataRequired()])
    submit = SubmitField('Submit')
Esempio n. 8
0
class LoginForm(FlaskForm):
    email = StringField('Your email', validators=[DataRequired(), Email()])
    password = PasswordField('Your password', validators=[DataRequired()])
    remember_me = BooleanField('Keep me logged in')
    submit = SubmitField('Login')
Esempio n. 9
0
class PasswordResetRequestForm(FlaskForm):
    email = StringField('Email',
                        validators=[DataRequired(),
                                    Length(1, 64),
                                    Email()])
    submit = SubmitField('Reset password')
Esempio n. 10
0
class LoginForm(FlaskForm):
    """Login form."""

    username = StringField('Username', validators=[InputRequired(message='Username is required.')])
    password = PasswordField('Password', validators=[Length(min=6, message='Password must be longer than 6 characters.'), InputRequired(message='Please enter password.')])
Esempio n. 11
0
class UserAddForm(FlaskForm):
    """Form for adding users."""

    username = StringField('Username', validators=[InputRequired(message='Username is required.')])
    email = StringField('E-mail', validators=[InputRequired(message='Email is required.'), Email(message='Please enter a valid email address.')])
    password = PasswordField('Password', validators=[Length(min=6, message='Password must be longer than 6 characters.'), InputRequired(message='Please enter password.')])
Esempio n. 12
0
class LoginForm(FlaskForm):
    """ Login form """

    username = StringField('username', validators=[InputRequired(message="Username required")])
    password = PasswordField('password', validators=[InputRequired(message="Password required"), invalid_credentials])
Esempio n. 13
0
class ShareProjectForm(FlaskForm):
    mail_id = StringField('Please use registered user id for sharing project')
    submit = SubmitField('share')
Esempio n. 14
0
class NameForm(FlaskForm):
    name = StringField('Enter Your name', validators=[DataRequired()])
    password = PasswordField('Provide Your password',
                             validators=[DataRequired()])
    submit = SubmitField('Submit')
Esempio n. 15
0
File: app.py Progetto: HKezibri/PFE
class RegFormuser(FlaskForm):
    email = StringField('email',  validators=[InputRequired(), Email(message='Invalid email'), Length(max=30)])
    password = PasswordField('password', validators=[InputRequired(), Length(min=8, max=20)])
Esempio n. 16
0
class ClothForm(FlaskForm):
    color_name = StringField("颜色名称", validators=[DataRequired(),])
    supplier = StringField("供应商", validators=[DataRequired(),])
    width = FloatField('门幅宽度', validators=[DataRequired(),])
    fibre = SelectField('材质', choices=('全棉', '棉绸', '雪纺'))
    submit = SubmitField('添加')
Esempio n. 17
0
class GoogleForm(FlaskForm):
    query_g = StringField('Search')
    submit_g = SubmitField('Google')
Esempio n. 18
0
class RegisterForm(FlaskForm):
    email =  StringField("Email", validators=[DataRequired()])
    password =  StringField("Password", validators=[DataRequired()])
    name = StringField("Name", validators=[DataRequired()])
    submit = SubmitField("Register")
Esempio n. 19
0
class NameForm(Form):
    name = StringField('What is your name?', validators=[DataRequired()])
    submit = SubmitField('Submit')
Esempio n. 20
0
class LoginForm(FlaskForm):
    email =  StringField("Email", validators=[DataRequired()])
    password =  StringField("Password", validators=[DataRequired()])
    submit = SubmitField("Login")
Esempio n. 21
0
class SpellForm(FlaskForm):
    inputtext = StringField('CheckText', id='inputtext', validators=[DataRequired()])
    submit = SubmitField('Submit')
Esempio n. 22
0
class CreatePostForm(FlaskForm):
    title = StringField("Blog Post Title", validators=[DataRequired()])
    subtitle = StringField("Subtitle", validators=[DataRequired()])
    img_url = StringField("Blog Image URL", validators=[DataRequired(), URL()])
    body = CKEditorField("Blog Content", validators=[DataRequired()])
    submit = SubmitField("Submit Post")
Esempio n. 23
0
class LoginForm(FlaskForm):
    email = StringField('Email',
                        validators=[DataRequired(), Email()])
    password = PasswordField('Password', validators=[DataRequired()])
    remember = BooleanField('Remember Me')
    submit = SubmitField('Login')
Esempio n. 24
0
class SiteForm(FlaskForm):
    search = StringField('Поиск', validators=[validators.DataRequired()])
    submit = SubmitField('Следующий шаг')
Esempio n. 25
0
class SearchForm(FlaskForm):
    search = StringField(validators = [DataRequired(message= '请输入关键字')],render_kw={"placeholder":"搜索电影,软件,图片,资料,番号...."})
    submit = SubmitField('搜索')
Esempio n. 26
0
class FiasForm(FlaskForm):
    search = StringField('Поиск')
    houses = SelectField('Выберите номер дома, если он есть в КЛАДРе:', choices=[])
    submit = SubmitField('Отправить в NetBox')
Esempio n. 27
0
class PostForm(FlaskForm):
    title = StringField('Title',
                        validators=[DataRequired(),
                                    Length(min=3, max=20)])
    content = TextAreaField('Content', validators=[DataRequired()])
    submit = SubmitField('Post')
Esempio n. 28
0
class ForumCreateForm(FlaskForm):
    forum_name_field = StringField(
        "Forum name", validators=[DataRequired(),
                                  Length(min=2, max=50)])
    forum_create_submit = SubmitField("Create forum")
Esempio n. 29
0
class ResetPasswordRequestForm(FlaskForm):
	email = StringField(_l("Email"), validators=[DataRequired(), Email()])
	submit = SubmitField(_l("Request Password Reset"))
Esempio n. 30
0
class LoginForm(FlaskForm):
    username = StringField('Username', validators=[DataRequired()])
    password = PasswordField('Password', validators=[DataRequired()])
    remember_me = BooleanField('Remember Me')
    submit = SubmitField('Sign In')
Esempio n. 31
0
 def __call__(self, **kwargs):
     return StringField.__call__(self, **addlengthfields(self, kwargs))
Esempio n. 32
0
class GameAddForm(FlaskForm):
    game = StringField('Game Name', validators=[DataRequired()])
    url = StringField('link')
    password = StringField('Password', validators=[DataRequired()])
    submit = SubmitField('Create Game')