Skip to content

Commit

Permalink
Use AppURL for Oauth user link (go-gitea#6894)
Browse files Browse the repository at this point in the history
* Use AppURL for Oauth user link

Fix go-gitea#6843

* Update oauth.go

* Update oauth.go
  • Loading branch information
techknowlogick authored and zeripath committed May 11, 2019
1 parent cd01397 commit 9bee091
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion routers/user/oauth.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 9bee091

Please sign in to comment.