Skip to content

Commit 2f21bc3

Browse files
techknowlogicklafriks
authored andcommitted
Use AppURL for Oauth user link (#6894)
* Use AppURL for Oauth user link Fix #6843 * Update oauth.go * Update oauth.go
1 parent 6db3dc7 commit 2f21bc3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

routers/user/oauth.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ func AuthorizeOAuth(ctx *context.Context, form auth.AuthorizationForm) {
259259
ctx.Data["Application"] = app
260260
ctx.Data["RedirectURI"] = form.RedirectURI
261261
ctx.Data["State"] = form.State
262-
ctx.Data["ApplicationUserLink"] = "<a href=\"" + setting.LocalURL + app.User.LowerName + "\">@" + app.User.Name + "</a>"
262+
ctx.Data["ApplicationUserLink"] = "<a href=\"" + setting.AppURL + app.User.LowerName + "\">@" + app.User.Name + "</a>"
263263
ctx.Data["ApplicationRedirectDomainHTML"] = "<strong>" + form.RedirectURI + "</strong>"
264264
// TODO document SESSION <=> FORM
265265
ctx.Session.Set("client_id", app.ClientID)

0 commit comments

Comments
 (0)