feat: notify user on account deletion
All checks were successful
Deploy / build-and-deploy (push) Successful in 1m45s
All checks were successful
Deploy / build-and-deploy (push) Successful in 1m45s
This commit is contained in:
parent
2db260f849
commit
43e6f76c01
12 changed files with 294 additions and 19 deletions
|
|
@ -57,6 +57,7 @@ func SetupRoutes(a *app.App) http.Handler {
|
|||
r.Get("/privacy", homeH.PrivacyPage).Name("page.public.privacy")
|
||||
r.Get("/terms", homeH.TermsPage).Name("page.public.terms")
|
||||
r.Get("/join/{token}", authH.JoinSpace).Name("page.public.join-space")
|
||||
r.Get("/account-deletion-status/{requestID}", settingsH.AccountDeletionStatusPage).Name("page.public.account-deletion-status")
|
||||
r.Post("/join/{token}/accept", authH.AcceptInvite).Name("action.public.join-space.accept")
|
||||
|
||||
// Permanent redirects
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ func newTestApp(dbi testutil.DBInfo) *app.App {
|
|||
accountSvc := service.NewAccountService(accountRepo)
|
||||
emailSvc := service.NewEmailService(nil, "test@example.com", "http://localhost:9999", "Budgit Test", false)
|
||||
authSvc := service.NewAuthService(emailSvc, userRepo, tokenRepo, spaceSvc, accountSvc, cfg.JWTSecret, cfg.JWTExpiry, cfg.TokenMagicLinkExpiry, false, false)
|
||||
userSvc := service.NewUserService(dbi.DB, userRepo, repository.NewAccountDeletionRequestRepository(dbi.DB))
|
||||
userSvc := service.NewUserService(dbi.DB, userRepo, repository.NewAccountDeletionRequestRepository(dbi.DB), nil)
|
||||
inviteSvc := service.NewInviteService(inviteRepo, spaceRepo, userRepo, emailSvc, nil)
|
||||
|
||||
return &app.App{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue