// CheckPasswordHash checks password hash and password from user input
CheckPasswordHash checks password hash and password from user input
// CheckPasswordHash checks password hash and password from user input
func (r repository) CheckPasswordHash(hash, password string) error {
	err := bcrypt.CompareHashAndPassword([]byte(hash), []byte(password))
	if err != nil {
		return utils.ErrWrongPassword
	}
	return nil
}
func ( r repository ) CheckPasswordHash ( hash , password string ) error { err := bcrypt . CompareHashAndPassword ( [ ] byte ( hash ) , [ ] byte ( password ) ) if err != nil { return utils . ErrWrongPassword } return nil }
CheckPasswordHash checks password hash and password from user input
CheckPasswordHash checks password hash and password from user input