<?php  // $Id: lib.php,v 1.4 2006/03/11 11:26:34 skodak Exp $
       // 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;
}



?>
