admin: store email on manual account creation

another mistake from the rewrite of account creation stuff. Should fix
issue #374, sorry for taking so long.
main
Harvey Tindall 2 weeks ago
parent 11eb907ced
commit da4470bc4f
No known key found for this signature in database
GPG Key ID: BBC65952848FB1A2

@ -53,6 +53,14 @@ func (app *appContext) NewUserFromAdmin(gc *gin.Context) {
nu.Log()
}
if emailEnabled && req.Email != "" {
emailStore := EmailAddress{
Addr: req.Email,
Contact: true,
}
app.storage.SetEmailsKey(nu.User.ID, emailStore)
}
welcomeMessageSentIfNecessary := true
if nu.Created {
welcomeMessageSentIfNecessary = app.WelcomeNewUser(nu.User, time.Time{})

Loading…
Cancel
Save