mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-10-31 14:22:25 -05:00 
			
		
		
		
	[bugfix] Fix '+'-separated scopes not being recognized
This commit is contained in:
		
					parent
					
						
							
								d308fd0d0a
							
						
					
				
			
			
				commit
				
					
						98694ca032
					
				
			
		
					 6 changed files with 36 additions and 19 deletions
				
			
		|  | @ -80,10 +80,12 @@ func (m *Module) TokenRevokePOSTHandler(c *gin.Context) { | |||
| 		return | ||||
| 	} | ||||
| 
 | ||||
| 	// Don't set `binding:"required"` on these | ||||
| 	// fields as we want to validate them ourself. | ||||
| 	form := &struct { | ||||
| 		ClientID     string `form:"client_id" validate:"required"` | ||||
| 		ClientSecret string `form:"client_secret" validate:"required"` | ||||
| 		Token        string `form:"token" validate:"required"` | ||||
| 		ClientID     string `form:"client_id"` | ||||
| 		ClientSecret string `form:"client_secret"` | ||||
| 		Token        string `form:"token"` | ||||
| 	}{} | ||||
| 	if err := c.ShouldBind(form); err != nil { | ||||
| 		errWithCode := gtserror.NewErrorBadRequest(err, err.Error()) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue