git.iko.soy/typeable/oauth2-proxy
on master help sign in
options: wrap missing-email-validation error message
commit3d8b59ef716756370df2903266d81e80c7e708a3 authorPierce Lopez <pierce.lopez@gmail.com> dateSat 5 Aug 2017, 12:54 (9 years ago) parente9bbecf
1 file changed+2−1
options.go+2−1
options.go+2−1
@@ -134,7 +134,8 @@ func (o *Options) Validate() error {
134134 msgs = append(msgs, "missing setting: client-secret")
135135 }
136136 if o.AuthenticatedEmailsFile == "" && len(o.EmailDomains) == 0 && o.HtpasswdFile == "" {
137− msgs = append(msgs, "missing setting for email validation: email-domain or authenticated-emails-file required.\n use email-domain=* to authorize all email addresses")
137+ msgs = append(msgs, "missing setting for email validation: email-domain or authenticated-emails-file required."+
138+ "\n use email-domain=* to authorize all email addresses")
138139 }
139140
140141 o.redirectURL, msgs = parseURL(o.RedirectURL, "redirect", msgs)