MCPcopy Index your code
hub / github.com/dnote/dnote / RespondInvalidSMTPConfig

Function RespondInvalidSMTPConfig

pkg/server/middleware/helpers.go:53–55  ·  view source on GitHub ↗

RespondInvalidSMTPConfig responds with invalid SMTP config error

(w http.ResponseWriter)

Source from the content-addressed store, hash-verified

51
52// RespondInvalidSMTPConfig responds with invalid SMTP config error
53func RespondInvalidSMTPConfig(w http.ResponseWriter) {
54 http.Error(w, "SMTP is not configured", http.StatusInternalServerError)
55}
56
57// UnsetSessionCookie unsets the session cookie
58func UnsetSessionCookie(w http.ResponseWriter) {

Callers

nothing calls this directly

Calls 1

ErrorMethod · 0.45

Tested by

no test coverage detected