Changeset 2288

Show
Ignore:
Timestamp:
09/30/2007 08:03:16 PM (16 months ago)
Author:
xue
Message:

fixed demos.

Location:
trunk/demos
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • trunk/demos/blog/protected/Common/BlogUserManager.php

    r2287 r2288  
    8181 
    8282        /** 
    83          * Validates if the username and password are correct. 
    84          * @param string user name 
    85          * @param string password 
    86          * @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 
    8787         */ 
    88         public function validateUser($username,$password) 
     88        public function getUserFromCookie($cookie); 
    8989        { 
    9090                // do nothing since we don't support cookie-based auth in this example 
    91                 return false; 
     91                return null; 
    9292        } 
    9393} 
  • trunk/demos/chat/protected/App_Code/ChatUserManager.php

    r2287 r2288  
    7070 
    7171        /** 
    72          * Validates if the username and password are correct. 
    73          * @param string user name 
    74          * @param string password 
    75          * @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 
    7676         */ 
    77         public function validateUser($username,$password) 
     77        public function getUserFromCookie($cookie); 
    7878        { 
    7979                // do nothing since we don't support cookie-based auth in this example 
    80                 return false; 
     80                return null; 
    8181        } 
    8282} 
  • trunk/demos/time-tracker/protected/App_Code/UserManager.php

    r2287 r2288  
    7676 
    7777        /** 
    78          * Validates if the username and password are correct. 
    79          * @param string user name 
    80          * @param string password 
    81          * @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 
    8282         */ 
    83         public function validateUser($username,$password) 
     83        public function getUserFromCookie($cookie); 
    8484        { 
    8585                // do nothing since we don't support cookie-based auth in this example 
    86                 return false; 
     86                return null; 
    8787        } 
    8888}