Skip to content
Snippets Groups Projects
Commit 38737d07 authored by Jiří Kalvoda's avatar Jiří Kalvoda
Browse files

Bugfix: Formulář na přidání účastníků: novým uživatelům poslat mail

parent 61a976c6
Branches
No related tags found
1 merge request!91Bugfix: Formulář na přidání účastníků: novým uživatelům poslat mail
This commit is part of merge request !91. Comments created here will be created in the context of that merge request.
...@@ -1674,6 +1674,8 @@ def org_contest_add_user(id: int, site_id: Optional[int] = None): ...@@ -1674,6 +1674,8 @@ def org_contest_add_user(id: int, site_id: Optional[int] = None):
db.get_session().commit() db.get_session().commit()
if is_new_user: if is_new_user:
flash("Založen nový uživatel.", "info") flash("Založen nový uživatel.", "info")
token = mo.users.make_activation_token(user)
mo.email.send_new_account_email(user, token)
if is_new_participant: if is_new_participant:
flash("Založena nová registrace do ročníku.", "info") flash("Založena nová registrace do ročníku.", "info")
if is_new_participation: if is_new_participation:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment