Skip to content
Snippets Groups Projects

Send email to user when they sign up

Merged Bjarke Madsen requested to merge send-user-signup-email into develop
1 unresolved thread
4 files
+ 8
8
Compare changes
  • Side-by-side
  • Inline
Files
4
@@ -33,13 +33,14 @@ def admin_required(func):
return wraps(func)(wrapper)
def create_user(email: str, fullname: str, oidc_sub: str):
def create_user(email: str, fullname: str, oidc_sub: str, given_name: str):
"""
Function used to create a new user in the database.
:param email: The email of the user
:param fullname: The full name of the user
:param oidc_sub: The OIDC subject identifier (ID) of the user
:param given_name: The given name of the user
:return: The user object
"""
@@ -47,7 +48,7 @@ def create_user(email: str, fullname: str, oidc_sub: str):
user = User(email=email, fullname=fullname, oidc_sub=oidc_sub)
session.add(user)
send_admin_signup_notification(user)
send_user_signup_notification(user)
send_user_signup_notification(user, given_name)
return user
Loading