mirror of
https://github.com/hrfee/jfa-go.git
synced 2024-12-22 00:50:12 +00:00
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.
This commit is contained in:
parent
11eb907ced
commit
da4470bc4f
@ -53,6 +53,14 @@ func (app *appContext) NewUserFromAdmin(gc *gin.Context) {
|
|||||||
nu.Log()
|
nu.Log()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if emailEnabled && req.Email != "" {
|
||||||
|
emailStore := EmailAddress{
|
||||||
|
Addr: req.Email,
|
||||||
|
Contact: true,
|
||||||
|
}
|
||||||
|
app.storage.SetEmailsKey(nu.User.ID, emailStore)
|
||||||
|
}
|
||||||
|
|
||||||
welcomeMessageSentIfNecessary := true
|
welcomeMessageSentIfNecessary := true
|
||||||
if nu.Created {
|
if nu.Created {
|
||||||
welcomeMessageSentIfNecessary = app.WelcomeNewUser(nu.User, time.Time{})
|
welcomeMessageSentIfNecessary = app.WelcomeNewUser(nu.User, time.Time{})
|
||||||
|
Loading…
Reference in New Issue
Block a user