mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 21:28:11 +09:00 
			
		
		
		
	add missing token validation and fix missing alert on application settings page (#3976)
This commit is contained in:
		
				
					committed by
					
						 Lunny Xiao
						Lunny Xiao
					
				
			
			
				
	
			
			
			
						parent
						
							d79829fc47
						
					
				
				
					commit
					80d1998981
				
			| @@ -184,7 +184,7 @@ func (f *AddKeyForm) Validate(ctx *macaron.Context, errs binding.Errors) binding | ||||
|  | ||||
| // NewAccessTokenForm form for creating access token | ||||
| type NewAccessTokenForm struct { | ||||
| 	Name string `binding:"Required"` | ||||
| 	Name string `binding:"Required;MaxSize(255)"` | ||||
| } | ||||
|  | ||||
| // Validate valideates the fields | ||||
|   | ||||
		Reference in New Issue
	
	Block a user