Rename auth redirect variable

This commit is contained in:
Marcos Lilljedahl
2020-11-11 23:30:28 -03:00
parent 4b4b767e46
commit e11087356e
2 changed files with 3 additions and 3 deletions

View File

@@ -73,8 +73,8 @@ func Login(rw http.ResponseWriter, req *http.Request) {
return
}
if playground.AuthRedirectURL != "" {
provider.RedirectURL = playground.AuthRedirectURL
if playground.AuthRedirectBase != "" {
provider.RedirectURL = fmt.Sprintf("%s/oauth/providers/%s/callback", playground.AuthRedirectBase, providerName)
} else {
scheme := "http"
if req.TLS != nil {