Remove old hardcoded domain

This commit is contained in:
Cam
2023-09-13 12:41:10 -05:00
parent ec73d03078
commit b951ea152d
3 changed files with 4 additions and 4 deletions

View File

@ -167,7 +167,7 @@ func configureGithubOauth(cfg *OauthConfig, tls bool) error {
authCheckInterval = i
}
SetZrokCookie(w, primaryEmail, tokens.AccessToken, "github", authCheckInterval, key)
SetZrokCookie(w, domain, primaryEmail, tokens.AccessToken, "github", authCheckInterval, key)
http.Redirect(w, r, fmt.Sprintf("%s://%s", scheme, token.Claims.(*IntermediateJWT).Host), http.StatusFound)
}