summaryrefslogtreecommitdiff
path: root/demos/blog/protected/Common/BlogUserManager.php
diff options
context:
space:
mode:
Diffstat (limited to 'demos/blog/protected/Common/BlogUserManager.php')
-rw-r--r--demos/blog/protected/Common/BlogUserManager.php22
1 files changed, 22 insertions, 0 deletions
diff --git a/demos/blog/protected/Common/BlogUserManager.php b/demos/blog/protected/Common/BlogUserManager.php
index a3053c61..5d1007cf 100644
--- a/demos/blog/protected/Common/BlogUserManager.php
+++ b/demos/blog/protected/Common/BlogUserManager.php
@@ -68,6 +68,28 @@ class BlogUserManager extends TModule implements IUserManager
else
return false;
}
+
+ /**
+ * 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