Horde_Auth_Sql::_comparePasswords PHP Method

_comparePasswords() protected method

Compare an encrypted password to a plaintext string to see if they match.
protected _comparePasswords ( string $encrypted, string $plaintext ) : boolean
$encrypted string The crypted password to compare against.
$plaintext string The plaintext password to verify.
return boolean True if matched, false otherwise.
    protected function _comparePasswords($encrypted, $plaintext)
    {
        return $encrypted == Horde_Auth::getCryptedPassword($plaintext, $encrypted, $this->_params['encryption'], $this->_params['show_encryption']);
    }