Changeset 2288
- Timestamp:
- 09/30/2007 08:03:16 PM (16 months ago)
- Location:
- trunk/demos
- Files:
-
- 3 modified
-
blog/protected/Common/BlogUserManager.php (modified) (1 diff)
-
chat/protected/App_Code/ChatUserManager.php (modified) (1 diff)
-
time-tracker/protected/App_Code/UserManager.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/demos/blog/protected/Common/BlogUserManager.php
r2287 r2288 81 81 82 82 /** 83 * Validates if the username and password are correct.84 * @param string user name85 * @ param string password86 * @ return boolean true if validation is successful, false otherwise.83 * Returns a user instance according to auth data stored in a cookie. 84 * @param THttpCookie the cookie storing user authentication information 85 * @return TUser the user instance generated based on the cookie auth data, null if the cookie does not have valid auth data. 86 * @since 3.1.1 87 87 */ 88 public function validateUser($username,$password)88 public function getUserFromCookie($cookie); 89 89 { 90 90 // do nothing since we don't support cookie-based auth in this example 91 return false;91 return null; 92 92 } 93 93 } -
trunk/demos/chat/protected/App_Code/ChatUserManager.php
r2287 r2288 70 70 71 71 /** 72 * Validates if the username and password are correct.73 * @param string user name74 * @ param string password75 * @ return boolean true if validation is successful, false otherwise.72 * Returns a user instance according to auth data stored in a cookie. 73 * @param THttpCookie the cookie storing user authentication information 74 * @return TUser the user instance generated based on the cookie auth data, null if the cookie does not have valid auth data. 75 * @since 3.1.1 76 76 */ 77 public function validateUser($username,$password)77 public function getUserFromCookie($cookie); 78 78 { 79 79 // do nothing since we don't support cookie-based auth in this example 80 return false;80 return null; 81 81 } 82 82 } -
trunk/demos/time-tracker/protected/App_Code/UserManager.php
r2287 r2288 76 76 77 77 /** 78 * Validates if the username and password are correct.79 * @param string user name80 * @ param string password81 * @ return boolean true if validation is successful, false otherwise.78 * Returns a user instance according to auth data stored in a cookie. 79 * @param THttpCookie the cookie storing user authentication information 80 * @return TUser the user instance generated based on the cookie auth data, null if the cookie does not have valid auth data. 81 * @since 3.1.1 82 82 */ 83 public function validateUser($username,$password)83 public function getUserFromCookie($cookie); 84 84 { 85 85 // do nothing since we don't support cookie-based auth in this example 86 return false;86 return null; 87 87 } 88 88 }
