create a custom alias with "my-first-alias" for first time user

This commit is contained in:
Son NK 2019-12-08 17:00:22 +01:00
parent 139fc68bda
commit 779cb9c377

View file

@ -113,7 +113,7 @@ class User(db.Model, ModelMixin, UserMixin):
db.session.flush()
# create a first alias mail to show user how to use when they login
GenEmail.create_new_gen_email(user_id=user.id)
GenEmail.create_custom_alias(user.id, prefix="my-first-alias")
db.session.flush()
return user