summaryrefslogtreecommitdiffstats
path: root/routers/web/auth
diff options
context:
space:
mode:
authorwxiaoguang <wxiaoguang@gmail.com>2022-01-20 03:05:06 +0800
committerGitHub <noreply@github.com>2022-01-19 19:05:06 +0000
commit6fba17460600261f0450468ab3b048789a423703 (patch)
tree9c399abec8f32c5d789e129be13199b7d1fad2b9 /routers/web/auth
parent531b6d60e1a05bb2584d1e81e6cd1ae42b57250b (diff)
downloadgitea-6fba17460600261f0450468ab3b048789a423703.tar.gz
gitea-6fba17460600261f0450468ab3b048789a423703.zip
Fix incorrect OAuth message (#18332)
As the title, Fix #18327
Diffstat (limited to 'routers/web/auth')
-rw-r--r--routers/web/auth/oauth.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/web/auth/oauth.go b/routers/web/auth/oauth.go
index 65ab9f358e..fa2b0aa65f 100644
--- a/routers/web/auth/oauth.go
+++ b/routers/web/auth/oauth.go
@@ -477,7 +477,7 @@ func AuthorizeOAuth(ctx *context.Context) {
ctx.Data["State"] = form.State
ctx.Data["Scope"] = form.Scope
ctx.Data["Nonce"] = form.Nonce
- ctx.Data["ApplicationUserLink"] = "<a href=\"" + html.EscapeString(user.HTMLURL()) + "\">@" + html.EscapeString(user.Name) + "</a>"
+ ctx.Data["ApplicationUserLinkHTML"] = "<a href=\"" + html.EscapeString(user.HTMLURL()) + "\">@" + html.EscapeString(user.Name) + "</a>"
ctx.Data["ApplicationRedirectDomainHTML"] = "<strong>" + html.EscapeString(form.RedirectURI) + "</strong>"
// TODO document SESSION <=> FORM
err = ctx.Session.Set("client_id", app.ClientID)