mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-29 10:57:44 +09:00 
			
		
		
		
	Use AppURL for Oauth user link (#6894)
* Use AppURL for Oauth user link Fix #6843 * Update oauth.go * Update oauth.go
This commit is contained in:
		
				
					committed by
					
						 Lauris BH
						Lauris BH
					
				
			
			
				
	
			
			
			
						parent
						
							6db3dc7c02
						
					
				
				
					commit
					2f21bc33a5
				
			| @@ -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) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user