forked from orbit-oss/flask
Added PasswordField in docs/patterns/wtforms.rst
This commit is contained in:
parent
a9f68dd4c7
commit
b115b38dbe
1 changed files with 1 additions and 1 deletions
|
|
@ -26,7 +26,7 @@ The Forms
|
|||
|
||||
This is an example form for a typical registration page::
|
||||
|
||||
from wtforms import Form, BooleanField, TextField, validators
|
||||
from wtforms import Form, BooleanField, TextField, PasswordField, validators
|
||||
|
||||
class RegistrationForm(Form):
|
||||
username = TextField('Username', [validators.Length(min=4, max=25)])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue