mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 00:20:25 +08:00 
			
		
		
		
	Change EncodePasswd to HashPassword (#3329)
* Change EncodePasswd to HashPassword * Create test+benchmark for HashPassword
This commit is contained in:
		
				
					committed by
					
						
						Kim "BKC" Carlbäcker
					
				
			
			
				
	
			
			
			
						parent
						
							f2b841d0ec
						
					
				
				
					commit
					674cfb7cac
				
			@@ -132,7 +132,7 @@ func EditUser(ctx *context.APIContext, form api.EditUserOption) {
 | 
			
		||||
			ctx.Error(500, "UpdateUser", err)
 | 
			
		||||
			return
 | 
			
		||||
		}
 | 
			
		||||
		u.EncodePasswd()
 | 
			
		||||
		u.HashPassword()
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	u.LoginName = form.LoginName
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user