mirror of
https://github.com/moodle/moodle.git
synced 2025-01-21 23:48:45 +01:00
88478a664f
Accounts have to exist in the internal database, and there is no way to create an account on the site - admins have to do it.
17 lines
388 B
PHP
17 lines
388 B
PHP
<?PHP // $Id$
|
|
// manual method - Just does a simple check against the database
|
|
|
|
function auth_user_login ($username, $password) {
|
|
// Returns false if the username doesn't exist yet
|
|
// Returns true if the username and password work
|
|
|
|
if ($user = get_user_info_from_db("username", $username)) {
|
|
return ($user->password == md5($password));
|
|
}
|
|
|
|
return false;
|
|
}
|
|
|
|
|
|
?>
|