fix restore users with MFA config

Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
Nicola Murino
2022-11-11 18:12:56 +01:00
parent 4e10275fd1
commit f400e67daa
7 changed files with 102 additions and 92 deletions

View File

@@ -181,6 +181,7 @@ func SendEmail(to []string, subject, body string, contentType EmailContentType,
}
email := mail.NewMSG()
email.AllowDuplicateAddress = true
if from != "" {
email.SetFrom(from)
} else {