moodle/auth/email/lib.php
2004-09-12 01:34:24 +00:00

20 lines
360 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_user_info_from_db("username", $username)) {
return false;
}
return ($user->password == md5($password));
}
?>