Send a confirmation email when an account is created. Links don't do anything yet.
This commit is contained in:
parent
87dc3b6344
commit
99341f7d53
8 changed files with 73 additions and 7 deletions
|
@ -28,9 +28,14 @@ def create_user(username, password, email):
|
|||
try:
|
||||
new_user = User.create(username=username, password_hash=pw_hash,
|
||||
email=email)
|
||||
return new_user
|
||||
except Exception as ex:
|
||||
raise DataModelException(ex.message)
|
||||
return new_user
|
||||
|
||||
|
||||
def create_confirm_email_code(user):
|
||||
code = EmailConfirmation(user=user, email_confirm=True)
|
||||
return code
|
||||
|
||||
|
||||
def get_user(username):
|
||||
|
|
Reference in a new issue