Skip to content

Commit

Permalink
options: wrap missing-email-validation error message
Browse files Browse the repository at this point in the history
  • Loading branch information
ploxiln committed Aug 5, 2017
1 parent e9bbecf commit 3d8b59e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion options.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,8 @@ func (o *Options) Validate() error {
msgs = append(msgs, "missing setting: client-secret")
}
if o.AuthenticatedEmailsFile == "" && len(o.EmailDomains) == 0 && o.HtpasswdFile == "" {
msgs = append(msgs, "missing setting for email validation: email-domain or authenticated-emails-file required.\n use email-domain=* to authorize all email addresses")
msgs = append(msgs, "missing setting for email validation: email-domain or authenticated-emails-file required."+
"\n use email-domain=* to authorize all email addresses")
}

o.redirectURL, msgs = parseURL(o.RedirectURL, "redirect", msgs)
Expand Down

0 comments on commit 3d8b59e

Please sign in to comment.