forked from mirrors/pronouns.cc
fix: let users select the Google account to log in with every time
This commit is contained in:
parent
c13c4e90b6
commit
00abe1cb32
1 changed files with 1 additions and 1 deletions
|
@ -185,7 +185,7 @@ func (s *Server) oauthURLs(w http.ResponseWriter, r *http.Request) error {
|
||||||
if googleOAuthConfig.ClientID != "" {
|
if googleOAuthConfig.ClientID != "" {
|
||||||
googleCfg := googleOAuthConfig
|
googleCfg := googleOAuthConfig
|
||||||
googleCfg.RedirectURL = req.CallbackDomain + "/auth/login/google"
|
googleCfg.RedirectURL = req.CallbackDomain + "/auth/login/google"
|
||||||
resp.Google = googleCfg.AuthCodeURL(state)
|
resp.Google = googleCfg.AuthCodeURL(state) + "&prompt=select_account"
|
||||||
}
|
}
|
||||||
|
|
||||||
render.JSON(w, r, resp)
|
render.JSON(w, r, resp)
|
||||||
|
|
Loading…
Reference in a new issue