109526520: Implement verify flow

When a person registers with a valid mobile number and email address,
a code will be sent to each. That person can enter the verify codes and continue to the add-service page.
This commit is contained in:
Rebecca Law
2015-12-07 16:08:30 +00:00
parent 56db1ad400
commit 16618e80f9
8 changed files with 122 additions and 22 deletions

View File

@@ -39,5 +39,7 @@ class RegisterUserForm(Form):
class VerifyForm(Form):
sms_code = IntegerField(DataRequired(message='SMS code can not be empty'))
email_code = IntegerField(DataRequired(message='Email code can not be empty'))
sms_code = IntegerField("Text message confirmation code",
validators=[DataRequired(message='SMS code can not be empty')])
email_code = IntegerField("Email confirmation code",
validators=[DataRequired(message='Email code can not be empty')])