MM-12708: tack on signin_change when completing email to saml change (#9776)

parent a6dad710
......@@ -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)
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment