summaryrefslogtreecommitdiff
path: root/demos/time-tracker
diff options
context:
space:
mode:
authorxue <>2007-10-01 01:03:16 +0000
committerxue <>2007-10-01 01:03:16 +0000
commitcd5e86f70a6a77a974ef935ca311f8d1b7a1e646 (patch)
tree404882b361d963da03ccaf7924235d5a6e89d350 /demos/time-tracker
parentb93b6514cc79c322facac9b4e4db67b01241e82c (diff)
fixed demos.
Diffstat (limited to 'demos/time-tracker')
-rw-r--r--demos/time-tracker/protected/App_Code/UserManager.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/demos/time-tracker/protected/App_Code/UserManager.php b/demos/time-tracker/protected/App_Code/UserManager.php
index 4d4ce75c..769e2463 100644
--- a/demos/time-tracker/protected/App_Code/UserManager.php
+++ b/demos/time-tracker/protected/App_Code/UserManager.php
@@ -75,15 +75,15 @@ class UserManager 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;
}
}