Skip to content

Commit 456c6f3

Browse files
author
Daniel Carrion
committed
feat: update to greater
1 parent d0b5240 commit 456c6f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

coderd/userauth.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ func (api *API) userOIDC(rw http.ResponseWriter, r *http.Request) {
291291
}
292292
// Check if one or comma delimited list of allowed domains is provided.
293293
// If a suffix matches, break and continue, otherwise error.
294-
if len(api.OIDCConfig.EmailDomains) != 0 {
294+
if len(api.OIDCConfig.EmailDomains) > 0 {
295295
ok = false
296296
for _, domain := range api.OIDCConfig.EmailDomains {
297297
if strings.HasSuffix(strings.ToLower(email), strings.ToLower(domain)) {

0 commit comments

Comments
 (0)