Updated send user code to use an optional to field to send emails

Added tests for send_user_code
This commit is contained in:
Rebecca Law
2016-01-27 11:51:02 +00:00
parent 20f71487df
commit 5dc48f8a01
4 changed files with 130 additions and 39 deletions

View File

@@ -1,11 +1,8 @@
import random
from datetime import (datetime, timedelta)
from . import DAOException
from sqlalchemy.orm import load_only
from app import db
from app.models import (User, VerifyCode)
from app.encryption import hashpw
def create_secret_code():