Skip to content

Commit

Permalink
Merge pull request porter-dev#758 from porter-dev/0.3.3-fix-restricte…
Browse files Browse the repository at this point in the history
…d-domain

[0.3.3] Fix google restricted domain
  • Loading branch information
abelanger5 authored Jun 2, 2021
2 parents bf389cf + f8ea3b0 commit b60300d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/api/oauth_google_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ func (app *App) upsertGoogleUserFromToken(tok *oauth2.Token) (*models.User, erro

// if the app has a restricted domain, check the `hd` query param
if app.ServerConf.GoogleRestrictedDomain != "" {
if gInfo.HD != "bloomchat.app" {
if gInfo.HD != app.ServerConf.GoogleRestrictedDomain {
return nil, fmt.Errorf("Email is not in the restricted domain group.")
}
}
Expand Down

0 comments on commit b60300d

Please sign in to comment.