mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-26 12:27:06 +00:00 
			
		
		
		
	Cleanup models.User.HashPassword (#3334)
This commit is contained in:
		 Kim "BKC" Carlbäcker
					Kim "BKC" Carlbäcker
				
			
				
					committed by
					
						 Lauris BH
						Lauris BH
					
				
			
			
				
	
			
			
			 Lauris BH
						Lauris BH
					
				
			
						parent
						
							9aed18073d
						
					
				
				
					commit
					e5b8b4b5ec
				
			| @@ -107,11 +107,10 @@ func runChangePassword(c *cli.Context) error { | ||||
| 	if err != nil { | ||||
| 		return fmt.Errorf("%v", err) | ||||
| 	} | ||||
| 	user.Passwd = c.String("password") | ||||
| 	if user.Salt, err = models.GetUserSalt(); err != nil { | ||||
| 		return fmt.Errorf("%v", err) | ||||
| 	} | ||||
| 	user.HashPassword() | ||||
| 	user.HashPassword(c.String("password")) | ||||
| 	if err := models.UpdateUserCols(user, "passwd", "salt"); err != nil { | ||||
| 		return fmt.Errorf("%v", err) | ||||
| 	} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user