fix: let users select the Google account to log in with every time

This commit is contained in:
sam 2023-12-30 04:41:22 +01:00
parent c13c4e90b6
commit 00abe1cb32
No known key found for this signature in database
GPG Key ID: B4EF20DDE721CAA1
1 changed files with 1 additions and 1 deletions

View File

@ -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)