2 // Standard authentication function
4 function auth_user_login ($username, $password) {
5 // Returns true if the username and password work
6 // and false if they don't
10 if (! $user = get_record('user', 'username', $username)) {
14 return ($user->password
== md5($password));