mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
MM-12708: tack on signin_change when completing email to saml change (#9776)
This commit is contained in:
committed by
Christopher Speller
parent
509ecf4345
commit
04a6a779e2
@@ -149,16 +149,19 @@ func completeSaml(c *Context, w http.ResponseWriter, r *http.Request) {
|
||||
return
|
||||
}
|
||||
|
||||
if action == model.OAUTH_ACTION_MOBILE {
|
||||
switch action {
|
||||
case model.OAUTH_ACTION_MOBILE:
|
||||
ReturnStatusOK(w)
|
||||
} else if action == model.OAUTH_ACTION_CLIENT {
|
||||
case model.OAUTH_ACTION_CLIENT:
|
||||
err = c.App.SendMessageToExtension(w, relayProps["extension_id"], c.Session.Token)
|
||||
|
||||
if err != nil {
|
||||
c.Err = err
|
||||
return
|
||||
}
|
||||
} else {
|
||||
case model.OAUTH_ACTION_EMAIL_TO_SSO:
|
||||
http.Redirect(w, r, c.GetSiteURLHeader()+"/login?extra=signin_change", http.StatusFound)
|
||||
default:
|
||||
http.Redirect(w, r, c.GetSiteURLHeader(), http.StatusFound)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user