MCPcopy Create free account
hub / github.com/realpython/discover-flask / RegisterForm

Class RegisterForm

project/users/forms.py:11–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9
10
11class RegisterForm(Form):
12 username = TextField(
13 'username',
14 validators=[DataRequired(), Length(min=3, max=25)]
15 )
16 email = TextField(
17 'email',
18 validators=[DataRequired(), Email(message=None), Length(min=6, max=40)]
19 )
20 password = PasswordField(
21 'password',
22 validators=[DataRequired(), Length(min=6, max=25)]
23 )
24 confirm = PasswordField(
25 'Repeat password',
26 validators=[
27 DataRequired(), EqualTo('password', message='Passwords must match.')
28 ]
29 )

Callers 1

registerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected