forked from orbit-oss/flask
Merge pull request #1748 from gaetan-petit/patch-1
Update deprecated references
This commit is contained in:
commit
1a7fd980f8
1 changed files with 2 additions and 2 deletions
|
|
@ -32,11 +32,11 @@ This is an example form for a typical registration page::
|
|||
username = StringField('Username', [validators.Length(min=4, max=25)])
|
||||
email = StringField('Email Address', [validators.Length(min=6, max=35)])
|
||||
password = PasswordField('New Password', [
|
||||
validators.Required(),
|
||||
validators.DataRequired(),
|
||||
validators.EqualTo('confirm', message='Passwords must match')
|
||||
])
|
||||
confirm = PasswordField('Repeat Password')
|
||||
accept_tos = BooleanField('I accept the TOS', [validators.Required()])
|
||||
accept_tos = BooleanField('I accept the TOS', [validators.DataRequired()])
|
||||
|
||||
In the View
|
||||
-----------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue