src/Service/authService.php
protected function checkPassword($encType,$password,$realPassword)
    {
        foreach(hash_algos() as $algos)
        {
            if(strtoupper($encType)==strtoupper($algos))
            {
                $password=hash($algos, $password);
            }
        }
        if($password==$realPassword)
        {
            return true;
        }
        else
        {
            return false;
        }
    }
protected function checkPassword($encType,$password,$realPassword)
    {
        foreach(hash_algos() as $algos)
        {
            if(strtoupper($encType)==strtoupper($algos))
            {
                $password=hash($algos, $password);
            }
        }
        if($password==$realPassword)
        {
            return true;
        }
        else
        {
            return false;
        }
    }
Check Password

@param string $encType encryption type
@param string $password
@param string $realPassword
@return boolean