mirror of
https://github.com/moodle/moodle.git
synced 2025-02-13 20:36:42 +01:00
17 lines
399 B
PHP
17 lines
399 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_record('user', 'username', $username)) {
|
|
return validate_internal_user_password($user, $password);
|
|
}
|
|
|
|
return false;
|
|
}
|
|
|
|
|
|
?>
|