Fix OAuth SSO first account creation, add mobile support, and fix refresh tokens (#6181)
Этот коммит содержится в:
коммит произвёл
Corey Hulen
родитель
83ca76f8f2
Коммит
8d1a132eda
@@ -417,6 +417,9 @@ func completeOAuth(c *Context, w http.ResponseWriter, r *http.Request) {
|
||||
} else if action == model.OAUTH_ACTION_SSO_TO_EMAIL {
|
||||
|
||||
redirectUrl = app.GetProtocol(r) + "://" + r.Host + "/claim?email=" + url.QueryEscape(props["email"])
|
||||
} else if action == model.OAUTH_ACTION_MOBILE {
|
||||
ReturnStatusOK(w)
|
||||
return
|
||||
} else {
|
||||
session, err := app.DoLogin(w, r, user, "")
|
||||
if err != nil {
|
||||
|
||||
Ссылка в новой задаче
Block a user