Fixing URL encoding of SAML email address when switching to SAML account (#7733)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
06ec648cf3
Коммит
3024525c3b
@@ -732,7 +732,7 @@ func (a *App) SwitchEmailToOAuth(w http.ResponseWriter, r *http.Request, email,
|
|||||||
stateProps["email"] = email
|
stateProps["email"] = email
|
||||||
|
|
||||||
if service == model.USER_AUTH_SERVICE_SAML {
|
if service == model.USER_AUTH_SERVICE_SAML {
|
||||||
return utils.GetSiteURL() + "/login/sso/saml?action=" + model.OAUTH_ACTION_EMAIL_TO_SSO + "&email=" + email, nil
|
return utils.GetSiteURL() + "/login/sso/saml?action=" + model.OAUTH_ACTION_EMAIL_TO_SSO + "&email=" + utils.UrlEncode(email), nil
|
||||||
} else {
|
} else {
|
||||||
if authUrl, err := a.GetAuthorizationCode(w, r, service, stateProps, ""); err != nil {
|
if authUrl, err := a.GetAuthorizationCode(w, r, service, stateProps, ""); err != nil {
|
||||||
return "", err
|
return "", err
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user