src/Security/MemberAuthenticator/ChangePasswordHandler.php
protected function checkPassword($member, $password)
    {
        if (empty($password)) {
            return false;
        }
        // With a valid user and password, check the password is correct
        $authenticators = Security::singleton()->getApplicableAuthenticators(Authenticator::CHECK_PASSWORD);
        foreach ($authenticators as $authenticator) {
            if (!$authenticator->checkPassword($member, $password)->isValid()) {
                return false;
            }
        }
        return true;
    }
protected function checkPassword($member, $password)
    {
        if (empty($password)) {
            return false;
        }
        // With a valid user and password, check the password is correct
        $authenticators = Security::singleton()->getApplicableAuthenticators(Authenticator::CHECK_PASSWORD);
        foreach ($authenticators as $authenticator) {
            if (!$authenticator->checkPassword($member, $password)->isValid()) {
                return false;
            }
        }
        return true;
    }
protected function checkPassword ( $ member , $ password ) { if ( empty ( $ password ) ) { return false ; } // With a valid user and password, check the password is correct $ authenticators = Security :: singleton ( ) -> getApplicableAuthenticators ( Authenticator :: CHECK_PASSWORD ) ; foreach ( $ authenticators as $ authenticator ) { if ( ! $ authenticator -> checkPassword ( $ member , $ password ) -> isValid ( ) ) { return false ; } } return true ; }
Check if password is ok

@param Member $member
@param string $password
@return bool
Check if password is ok