moodle/auth/manual/lib.php
moodler 7c12949d10 Rationalised get_user_info_from_db() and sundry other small bits into
a single function called: get_complete_user_data()

This is to help shibboleth but will also help when this function
needs to be extended in future.
2005-04-17 12:08:46 +00:00

17 lines
385 B
PHP

<?php // $Id$
// manual method - Just does a simple check against the database
function auth_user_login ($username, $password) {
// Returns false 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));
}
return false;
}
?>