MFA fix, added IP blacklist, update webmail client
This commit is contained in:
@@ -141,7 +141,7 @@ func (a *App) resetMailboxMFA(w http.ResponseWriter, r *http.Request) {
|
||||
if err := a.DB.ResetMailboxMFA(mailbox.ID); err != nil {
|
||||
setFlash(w, "error", "Error resetting MFA")
|
||||
} else {
|
||||
_ = a.DB.LogAuthAttempt("mailbox_mfa", mailbox.Email, requestIP(r), true, "MFA reset by admin "+userFromContext(r).Username)
|
||||
_ = a.DB.LogAuthAttempt("mailbox_mfa", mailbox.Email, a.requestIP(r), true, "MFA reset by admin "+userFromContext(r).Username)
|
||||
setFlash(w, "success", "MFA reset for "+mailbox.Email)
|
||||
}
|
||||
http.Redirect(w, r, Prefix+"/mailboxes", http.StatusFound)
|
||||
|
||||
Reference in New Issue
Block a user