aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--server/auth/google/google.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/server/auth/google/google.go b/server/auth/google/google.go
index 0328d42..7c9b930 100644
--- a/server/auth/google/google.go
+++ b/server/auth/google/google.go
@@ -73,9 +73,7 @@ func (c *Config) Valid(token *oauth2.Token) bool {
if err != nil {
return false
}
- switch {
- case ti.Audience != c.config.ClientID:
- case ui.Hd != c.domain:
+ if ti.Audience != c.config.ClientID || ui.Hd != c.domain {
return false
}
return true