First implementation of new authentication system, which can now use
[moodle.git] / auth / none / lib.php
CommitLineData
faebaf0f 1<?PHP // $Id$
2 // No authentication at all. This method approves everything!
3
4function auth_user_login ($username, $password) {
5// Returns true if the username doesn't exist yet
6// Returns true if the username and password work
7
8 if (! $user = get_user_info_from_db("username", $username)) {
9 return true;
10 }
11
12 return ($user->password == md5($password));
13}
14
15
16
17?>