109638656: Initial implementation for two-factor

This commit is contained in:
Rebecca Law
2015-12-07 16:56:11 +00:00
parent fcf8e8644b
commit eae2756a5e
5 changed files with 38 additions and 6 deletions

View File

@@ -41,6 +41,10 @@ class RegisterUserForm(Form):
Blacklist(message='That password is blacklisted, too common')])
class TwoFactorForm(Form):
sms_code = IntegerField('sms code', validators=[DataRequired(message='Please enter your code')])
class VerifyForm(Form):
sms_code = StringField("Text message confirmation code",
validators=[DataRequired(message='SMS code can not be empty'),