summaryrefslogtreecommitdiff
path: root/demos/time-tracker
diff options
context:
space:
mode:
authorxue <>2007-10-01 01:01:16 +0000
committerxue <>2007-10-01 01:01:16 +0000
commitb93b6514cc79c322facac9b4e4db67b01241e82c (patch)
tree5da899805fba9631c4a202bf7703f914219048e6 /demos/time-tracker
parent3e4195d8333f5e04358711e5bb0a7ea98e5d9701 (diff)
fixed demos due to change in IUserManager.
Diffstat (limited to 'demos/time-tracker')
-rw-r--r--demos/time-tracker/protected/App_Code/UserManager.php26
1 files changed, 24 insertions, 2 deletions
diff --git a/demos/time-tracker/protected/App_Code/UserManager.php b/demos/time-tracker/protected/App_Code/UserManager.php
index b4a4ad68..4d4ce75c 100644
--- a/demos/time-tracker/protected/App_Code/UserManager.php
+++ b/demos/time-tracker/protected/App_Code/UserManager.php
@@ -27,7 +27,7 @@ class UserManager extends TModule implements IUserManager
{
return 'Guest';
}
-
+
/**
* Returns a user instance given the user name.
* @param string user name, null if it is a guest.
@@ -50,7 +50,7 @@ class UserManager extends TModule implements IUserManager
return $user;
}
}
-
+
/**
* Validates if the username and password are correct.
* @param string user name
@@ -63,6 +63,28 @@ class UserManager extends TModule implements IUserManager
$userDao = $daos->getDao('UserDao');
return $userDao->validateUser($username, $password);
}
+
+ /**
+ * Saves user auth data into a cookie.
+ * @param THttpCookie the cookie to receive the user auth data.
+ * @since 3.1.1
+ */
+ public function saveUserToCookie($cookie)
+ {
+ // do nothing since we don't support cookie-based auth in this example
+ }
+
+ /**
+ * Validates if the username and password are correct.
+ * @param string user name
+ * @param string password
+ * @return boolean true if validation is successful, false otherwise.
+ */
+ public function validateUser($username,$password)
+ {
+ // do nothing since we don't support cookie-based auth in this example
+ return false;
+ }
}
?> \ No newline at end of file