From 47abf20e1d7bf4788ef675180cac91dee1267e32 Mon Sep 17 00:00:00 2001 From: Harvey Tindall Date: Tue, 3 Nov 2020 21:20:38 +0000 Subject: [PATCH] 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. --- api.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api.go b/api.go index d8ea7d6..a04f48a 100644 --- a/api.go +++ b/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() }