Skip to content
Snippets Groups Projects
Commit ba1e80f3 authored by Cam Saül's avatar Cam Saül Committed by GitHub
Browse files

Merge pull request #3038 from metabase/email-settings-validation-tweak

Minor tweak for email settings validation :mailbox_with_mail:
parents 46459d28 966ad6da
Branches
Tags
No related merge requests found
......@@ -18,7 +18,8 @@
"SMTP secure connection protocol. (tls, ssl, or none)"
:default "none"
:setter (fn [new-value]
(assert (contains? #{"tls" "ssl" "none"} new-value))
(when-not (nil? new-value)
(assert (contains? #{"tls" "ssl" "none"} new-value)))
(setting/set-string! :email-smtp-security new-value)))
;; ## PUBLIC INTERFACE
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment