Skip to content

Commit

Permalink
store emails even if password resets are disabled
Browse files Browse the repository at this point in the history
there are other reasons to store email addresses now, so this is no
longer a just requirement.
  • Loading branch information
hrfee committed Nov 3, 2020
1 parent 493f10f commit 47abf20
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion api.go
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,8 @@ func (app *appContext) NewUser(gc *gin.Context) {
}
}
}
if app.config.Section("password_resets").Key("enabled").MustBool(false) {
// if app.config.Section("password_resets").Key("enabled").MustBool(false) {
if req.Email != "" {
app.storage.emails[id] = req.Email
app.storage.storeEmails()
}
Expand Down

0 comments on commit 47abf20

Please sign in to comment.