mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-09-25 19:16:59 +00:00
[GITEA] notifies admins on new user registration
Sends email with information on the new user (time of creation and time of last sign-in) and a link to manage the new user from the admin panel
closes: https://codeberg.org/forgejo/forgejo/issues/480
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/1371
Co-authored-by: Aravinth Manivannan <realaravinth@batsense.net>
Co-committed-by: Aravinth Manivannan <realaravinth@batsense.net>
(cherry picked from commit c721aa828b
)
This commit is contained in:
parent
fc065c8294
commit
6487efcb9d
11 changed files with 217 additions and 1 deletions
|
@ -376,3 +376,10 @@ func NotifyPackageDelete(ctx context.Context, doer *user_model.User, pd *package
|
|||
notifier.NotifyPackageDelete(ctx, doer, pd)
|
||||
}
|
||||
}
|
||||
|
||||
// NotifyNewUserSignUp notifies deletion of a package to notifiers
|
||||
func NotifyNewUserSignUp(ctx context.Context, newUser *user_model.User) {
|
||||
for _, notifier := range notifiers {
|
||||
notifier.NotifyNewUserSignUp(ctx, newUser)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue