mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-10-30 22:32:25 -05:00 
			
		
		
		
	[bugfix] Fix using wrong key for clientID during oauth callback (#2101)
This commit is contained in:
		
					parent
					
						
							
								dc96562b40
							
						
					
				
			
			
				commit
				
					
						dc99e9e10b
					
				
			
		
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -107,7 +107,7 @@ func (m *Module) CallbackGETHandler(c *gin.Context) { | ||||||
| 		return | 		return | ||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
| 	app, err := m.db.GetApplicationByClientID(c.Request.Context(), sessionClientID) | 	app, err := m.db.GetApplicationByClientID(c.Request.Context(), clientID) | ||||||
| 	if err != nil { | 	if err != nil { | ||||||
| 		m.clearSession(s) | 		m.clearSession(s) | ||||||
| 		safe := fmt.Sprintf("application for %s %s could not be retrieved", sessionClientID, clientID) | 		safe := fmt.Sprintf("application for %s %s could not be retrieved", sessionClientID, clientID) | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue