From 84553b0fd0d507d3e8a963deb5cba12d0d5f0b84 Mon Sep 17 00:00:00 2001 From: ewinslow Date: Tue, 1 Feb 2011 07:47:49 +0000 Subject: Moved deprecated files from sessions.php - xml.php into deprecation files for 1.7 and 1.8 git-svn-id: http://code.elgg.org/elgg/trunk@7981 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/sessions.php | 22 ---------------------- 1 file changed, 22 deletions(-) (limited to 'engine/lib/sessions.php') diff --git a/engine/lib/sessions.php b/engine/lib/sessions.php index eb47f4eb5..46912a152 100644 --- a/engine/lib/sessions.php +++ b/engine/lib/sessions.php @@ -147,28 +147,6 @@ function elgg_authenticate($username, $password) { return true; } -/** - * Perform standard authentication with a given username and password. - * Returns an ElggUser object for use with login. - * - * @see login - * - * @param string $username The username, optionally (for standard logins) - * @param string $password The password, optionally (for standard logins) - * - * @return ElggUser|false The authenticated user object, or false on failure. - */ -function authenticate($username, $password) { - elgg_deprecated_notice('authenticate() has been deprecated for elgg_authenticate()', 1.8); - $pam = new ElggPAM('user'); - $credentials = array('username' => $username, 'password' => $password); - $result = $pam->authenticate($credentials); - if ($result) { - return get_user_by_username($username); - } - return false; -} - /** * Hook into the PAM system which accepts a username and password and attempts to authenticate * it against a known user. -- cgit v1.2.3