109898688: Implementation of text-not-received and email-not-received

This commit is contained in:
Rebecca Law
2015-12-15 15:35:30 +00:00
parent e9383b733e
commit bd8bb3c926
9 changed files with 192 additions and 33 deletions

View File

@@ -20,8 +20,8 @@ def get_code(user_id, code_type):
return verify_code
def get_code_by_code(user_id, code_type):
return VerifyCodes.query.filter_by(user_id=user_id, code_type=code_type).first()
def get_code_by_code(user_id, code, code_type):
return VerifyCodes.query.filter_by(user_id=user_id, code=code, code_type=code_type).first()
def use_code(id):