mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	Include login_name in adminCreateUser response (#20283)
`login_name` (Authentication Sign-in Name) is not included in the response of `adminUserCreate` API. This PR is to return user-specified `login_name` if there is one.
This commit is contained in:
		@@ -17,6 +17,9 @@ type User struct {
 | 
			
		||||
	ID int64 `json:"id"`
 | 
			
		||||
	// the user's username
 | 
			
		||||
	UserName string `json:"login"`
 | 
			
		||||
	// the user's authentication sign-in name.
 | 
			
		||||
	// default: empty
 | 
			
		||||
	LoginName string `json:"login_name"`
 | 
			
		||||
	// the user's full name
 | 
			
		||||
	FullName string `json:"full_name"`
 | 
			
		||||
	// swagger:strfmt email
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user