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

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
67
68
69 def send_admin_signup_notification(user: User):
70 fullname = user.fullname
71 email = user.email
72 oidc_sub = user.oidc_sub
73
74 contents = f"""{fullname} has just signed up with the email {email} and provider ID {oidc_sub}"""
75 send_mail(contents=contents, subject='New user signed up for Compendium')
76
77
78 def send_user_signup_notification(user: User):
79 fullname = user.fullname
80 email = user.email
81
82 first_name = ' ' + fullname.split()[0] if fullname else ''
  • Remco Tukker approved this merge request

    approved this merge request

  • Bjarke Madsen added 1 commit

    added 1 commit

    Compare with previous version

  • Remco Tukker mentioned in commit 48f9c191

    mentioned in commit 48f9c191

  • merged

  • Please register or sign in to reply
    Loading