mirror of
				https://codeberg.org/forgejo/forgejo.git
				synced 2025-11-04 00:11:04 +00:00 
			
		
		
		
	[GITEA] Fix required error for token name
- Say to the binding middleware which locale should be used for the required error. - Resolves https://codeberg.org/forgejo/forgejo/issues/1683 (cherry picked from commit64faeb6bef) (cherry picked from commitc93dbe1a6a) (cherry picked from commit81fcaee761)
This commit is contained in:
		
					parent
					
						
							
								0944b7a92a
							
						
					
				
			
			
				commit
				
					
						9080bb1fdc
					
				
			
		
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -365,7 +365,7 @@ func (f *EditVariableForm) Validate(req *http.Request, errs binding.Errors) bind
 | 
			
		|||
 | 
			
		||||
// NewAccessTokenForm form for creating access token
 | 
			
		||||
type NewAccessTokenForm struct {
 | 
			
		||||
	Name  string `binding:"Required;MaxSize(255)"`
 | 
			
		||||
	Name  string `binding:"Required;MaxSize(255)" locale:"settings.token_name"`
 | 
			
		||||
	Scope []string
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue