checkpassword($username, $password)) { //echo 'Auth-Method-True'; return true; } else { //echo 'Auth-Method-False'; return false; } } /** * Get the md5 hashed password by the addon username * * @param string $username addon username * @return string md5 hashed string */ public function digestAuthentication($username) { $aam = new AddonAuthentication(); return md5($aam->getPasswordByUsername($username)); } }