Source code for user.forms.totp

from onegov.form import Form
from onegov.user import _
from wtforms.fields import StringField
from wtforms.validators import InputRequired


[docs] class TOTPForm(Form):
[docs] totp = StringField( label=_('Code'), validators=[InputRequired()], render_kw={'autocomplete': 'one-time-code'} )