Skip to content
Snippets Groups Projects
Commit de23b00a authored by Jaime Perez Crespo's avatar Jaime Perez Crespo
Browse files

Update documentation to point to the new SimpleSAML\Logger and SimpleSAML\Module classes.

parent 54be5838
No related branches found
No related tags found
No related merge requests found
......@@ -124,13 +124,13 @@ Example code for the function with GeoIP country check:
}
if (!function_exists('geoip_country_code_by_name')) {
SimpleSAML_Logger::warning('geoip php module required.');
SimpleSAML\Logger::warning('geoip php module required.');
return TRUE;
}
$stored_remote_addr = $session->getData($data_type, $data_key);
if ($stored_remote_addr === NULL) {
SimpleSAML_Logger::warning('Stored data not found.');
SimpleSAML\Logger::warning('Stored data not found.');
return FALSE;
}
......
......@@ -315,14 +315,14 @@ The class follows:
$row = $st->fetch(PDO::FETCH_ASSOC);
if (!$row) {
/* User not found. */
SimpleSAML_Logger::warning('MyAuth: Could not find user ' . var_export($username, TRUE) . '.');
SimpleSAML\Logger::warning('MyAuth: Could not find user ' . var_export($username, TRUE) . '.');
throw new SimpleSAML_Error_Error('WRONGUSERPASS');
}
/* Check the password. */
if (!$this->checkPassword($row['password_hash'], $password)) {
/* Invalid password. */
SimpleSAML_Logger::warning('MyAuth: Wrong password for user ' . var_export($username, TRUE) . '.');
SimpleSAML\Logger::warning('MyAuth: Wrong password for user ' . var_export($username, TRUE) . '.');
throw new SimpleSAML_Error_Error('WRONGUSERPASS');
}
......
......@@ -110,7 +110,7 @@ www
`https://.../simplesamlphp/module.php/example/login.php`.
: To retrieve this URL, the
`SimpleSAML_Module::getModuleURL($resource)`-function can be used.
`SimpleSAML\Module::getModuleURL($resource)`-function can be used.
This function takes in a resource on the form `<module>/<file>`.
This function will then return a URL to the given file in the
`www`-directory of `module`.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment