checkpassword($username, $password)) { return true; } else { return false; } } /** * * TO BE UPDATED * * 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)); } }