Skip to content

Instantly share code, notes, and snippets.

@andkirby
Created December 20, 2012 11:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andkirby/4344634 to your computer and use it in GitHub Desktop.
Save andkirby/4344634 to your computer and use it in GitHub Desktop.
test
/**
* Validate password
*
* @param Varien_Object $object
* @return bool
*/
public function validate($object)
{
$password = $object->getPassword();
if ($password && $password == $object->getPasswordConfirm()) {
return true;
}
return parent::validate($object);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment