aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortechknowlogick2019-05-13 00:53:02 -0400
committerLauris BH2019-05-13 07:53:02 +0300
commite069a758179cc94e56d96b1b97b55b8785a69e3e (patch)
tree1ea8631caa5e2dae32782cfdffb987bd1505cbe1
parentebb8fa610c78b426d526d15fd691c3133e68fd8f (diff)
Use AppURL for Oauth user link (#6894) (#6925)
-rw-r--r--routers/user/oauth.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/user/oauth.go b/routers/user/oauth.go
index f69c0047a..b85ea8125 100644
--- a/routers/user/oauth.go
+++ b/routers/user/oauth.go
@@ -259,7 +259,7 @@ func AuthorizeOAuth(ctx *context.Context, form auth.AuthorizationForm) {
ctx.Data["Application"] = app
ctx.Data["RedirectURI"] = form.RedirectURI
ctx.Data["State"] = form.State
- ctx.Data["ApplicationUserLink"] = "<a href=\"" + setting.LocalURL + app.User.LowerName + "\">@" + app.User.Name + "</a>"
+ ctx.Data["ApplicationUserLink"] = "<a href=\"" + setting.AppURL + app.User.LowerName + "\">@" + app.User.Name + "</a>"
ctx.Data["ApplicationRedirectDomainHTML"] = "<strong>" + form.RedirectURI + "</strong>"
// TODO document SESSION <=> FORM
ctx.Session.Set("client_id", app.ClientID)