moodle/auth/none/lib.php

18 lines
382 B
PHP
Raw Normal View History

2004-09-12 01:34:24 +00:00
<?php // $Id$
// No authentication at all. This method approves everything!
function auth_user_login ($username, $password) {
// Returns true if the username doesn't exist yet
// Returns true if the username and password work
if ($user = get_record('user', 'username', $username)) {
return ($user->password == md5($password));
}
2005-06-25 13:22:13 +00:00
return true;
}
?>