2004-09-12 01:34:24 +00:00
|
|
|
<?php // $Id$
|
2002-09-26 07:03:22 +00:00
|
|
|
// 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
|
|
|
|
|
2005-04-17 12:08:46 +00:00
|
|
|
if ($user = get_record('user', 'username', $username)) {
|
2006-03-11 11:26:36 +00:00
|
|
|
return validate_internal_user_password($user, $password);
|
2002-09-26 07:03:22 +00:00
|
|
|
}
|
|
|
|
|
2005-06-25 13:22:13 +00:00
|
|
|
return true;
|
2002-09-26 07:03:22 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
?>
|