Fix bug with send_verify_code not including the to field.

This commit is contained in:
Nicholas Staples
2016-02-22 12:33:59 +00:00
parent b4ddcaa9b1
commit 980c01e10c
7 changed files with 11 additions and 11 deletions
+1 -1
View File
@@ -27,7 +27,7 @@ def sign_in():
if user.state == 'pending':
return redirect(url_for('.verify'))
elif user.is_active():
users_dao.send_verify_code(user.id, 'sms')
users_dao.send_verify_code(user.id, 'sms', user.mobile_number)
return redirect(url_for('.two_factor'))
# Vague error message for login in case of user not known, locked, inactive or password not verified
flash('Username or password is incorrect')