mirror of
https://github.com/hrfee/jfa-go.git
synced 2026-03-18 21:50:33 +01:00
store emails even if password resets are disabled
there are other reasons to store email addresses now, so this is no longer a just requirement.
This commit is contained in:
3
api.go
3
api.go
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user