aboutsummaryrefslogtreecommitdiffstats
path: root/code/api/src/Endpoints/Internal/Account
diff options
context:
space:
mode:
Diffstat (limited to 'code/api/src/Endpoints/Internal/Account')
-rw-r--r--code/api/src/Endpoints/Internal/Account/CreateAccountRoute.cs1
1 files changed, 1 insertions, 0 deletions
diff --git a/code/api/src/Endpoints/Internal/Account/CreateAccountRoute.cs b/code/api/src/Endpoints/Internal/Account/CreateAccountRoute.cs
index 44b8376..c114bb8 100644
--- a/code/api/src/Endpoints/Internal/Account/CreateAccountRoute.cs
+++ b/code/api/src/Endpoints/Internal/Account/CreateAccountRoute.cs
@@ -46,6 +46,7 @@ public class CreateAccountRoute : RouteBaseAsync.WithRequest<CreateAccountRoute.
_database.Users.Add(user);
await _database.SaveChangesAsync(cancellationToken);
await _userService.LogInUser(HttpContext, user);
+ Task.Run(() => _userService.SendValidationEmail(user), cancellationToken);
return Ok();
}
} \ No newline at end of file