add MFA, user web mail portal
This commit is contained in:
@@ -141,6 +141,11 @@ func (a *App) editDomain(w http.ResponseWriter, r *http.Request) {
|
||||
http.Redirect(w, r, Prefix+"/domains", http.StatusFound)
|
||||
return
|
||||
}
|
||||
if err := a.DB.SetDomainMFAExempt(id, r.FormValue("mfa_exempt") == "on"); err != nil {
|
||||
setFlash(w, "error", "Error updating domain")
|
||||
http.Redirect(w, r, Prefix+"/domains", http.StatusFound)
|
||||
return
|
||||
}
|
||||
setFlash(w, "success", "Domain updated successfully")
|
||||
http.Redirect(w, r, Prefix+"/domains", http.StatusFound)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user