mirror of
https://gitlab.com/commento/commento.git
synced 2025-06-28 22:55:39 -04:00
domain_export.go: raise error if SMTP is not configured
This commit is contained in:
@ -123,6 +123,11 @@ func domainExportBeginHandler(w http.ResponseWriter, r *http.Request) {
|
||||
return
|
||||
}
|
||||
|
||||
if !smtpConfigured {
|
||||
bodyMarshal(w, response{"success": false, "message": errorSmtpNotConfigured.Error()})
|
||||
return
|
||||
}
|
||||
|
||||
o, err := ownerGetByOwnerToken(*x.OwnerToken)
|
||||
if err != nil {
|
||||
bodyMarshal(w, response{"success": false, "message": err.Error()})
|
||||
|
Reference in New Issue
Block a user