moodle/auth/email/lib.php

20 lines
365 B
PHP

<?php // $Id$
// Standard authentication function
function auth_user_login ($username, $password) {
// Returns true if the username and password work
// and false if they don't
global $CFG;
if ($user = get_record('user', 'username', $username)) {
return validate_internal_user_password($user, $password);
}
return false;
}
?>