Fixed production server login

This commit is contained in:
2017-06-15 19:56:09 +02:00
parent 7178853b9a
commit 1790bce104
3 changed files with 16 additions and 3 deletions

View File

@ -30,7 +30,7 @@ func EnableGoogleLogin(app *aero.Application) {
conf := &oauth2.Config{
ClientID: apiKeys.Google.ID,
ClientSecret: apiKeys.Google.Secret,
RedirectURL: "https://beta.notify.moe/auth/google/callback",
RedirectURL: "https://" + app.Config.Domain + "/auth/google/callback",
Scopes: []string{
"https://www.googleapis.com/auth/userinfo.email",
},