mirror of https://github.com/pallets/flask.git
Merge pull request #333 from kracekumar/master
Added PasswordField in docs/patterns/wtforms.rst
This commit is contained in:
commit
6dec92dde9
|
|
@ -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…
Reference in New Issue