From cd5e86f70a6a77a974ef935ca311f8d1b7a1e646 Mon Sep 17 00:00:00 2001 From: xue <> Date: Mon, 1 Oct 2007 01:03:16 +0000 Subject: fixed demos. --- demos/blog/protected/Common/BlogUserManager.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'demos/blog/protected/Common') diff --git a/demos/blog/protected/Common/BlogUserManager.php b/demos/blog/protected/Common/BlogUserManager.php index 5d1007cf..931b09db 100644 --- a/demos/blog/protected/Common/BlogUserManager.php +++ b/demos/blog/protected/Common/BlogUserManager.php @@ -80,15 +80,15 @@ class BlogUserManager extends TModule implements IUserManager } /** - * Validates if the username and password are correct. - * @param string user name - * @param string password - * @return boolean true if validation is successful, false otherwise. + * Returns a user instance according to auth data stored in a cookie. + * @param THttpCookie the cookie storing user authentication information + * @return TUser the user instance generated based on the cookie auth data, null if the cookie does not have valid auth data. + * @since 3.1.1 */ - public function validateUser($username,$password) + public function getUserFromCookie($cookie); { // do nothing since we don't support cookie-based auth in this example - return false; + return null; } } -- cgit v1.2.3