summaryrefslogtreecommitdiffstats
path: root/routers/user/oauth.go
diff options
context:
space:
mode:
authortechknowlogick <matti@mdranta.net>2019-05-09 13:22:35 -0400
committerLauris BH <lauris@nix.lv>2019-05-09 20:22:35 +0300
commit2f21bc33a528894c085bf944666f668725f04d8a (patch)
tree0c3a379d12e740bb5aa9b45ae2c7e164afcbb3ba /routers/user/oauth.go
parent6db3dc7c021e05658f063e577e2ea972b8bad80d (diff)
downloadgitea-2f21bc33a528894c085bf944666f668725f04d8a.tar.gz
gitea-2f21bc33a528894c085bf944666f668725f04d8a.zip
Use AppURL for Oauth user link (#6894)
* Use AppURL for Oauth user link Fix #6843 * Update oauth.go * Update oauth.go
Diffstat (limited to 'routers/user/oauth.go')
-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 f69c0047ae..b85ea8125e 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)