[Yanel-commits] rev 59211 - public/yanel/trunk/src/webapp/src/java/org/wyona/yanel/servlet/security/impl
michi at wyona.com
michi at wyona.com
Wed Jul 6 15:59:53 CEST 2011
Author: michi
Date: 2011-07-06 15:59:53 +0200 (Wed, 06 Jul 2011)
New Revision: 59211
Modified:
public/yanel/trunk/src/webapp/src/java/org/wyona/yanel/servlet/security/impl/AutoLogin.java
Log:
javadoc and log messages fixed
Modified: public/yanel/trunk/src/webapp/src/java/org/wyona/yanel/servlet/security/impl/AutoLogin.java
===================================================================
--- public/yanel/trunk/src/webapp/src/java/org/wyona/yanel/servlet/security/impl/AutoLogin.java 2011-07-06 13:44:51 UTC (rev 59210)
+++ public/yanel/trunk/src/webapp/src/java/org/wyona/yanel/servlet/security/impl/AutoLogin.java 2011-07-06 13:59:53 UTC (rev 59211)
@@ -60,7 +60,10 @@
}
/**
- *
+ * Enable auto login by adding a cookie and setting a unique token persistently on the server side
+ * @param username User for which auto login will be enabled
+ * @param response HTTP response to which cookie will be attached
+ * @param realm Realm of repository to which user token will be attached
*/
public static void enableAutoLogin(String username, HttpServletResponse response, Realm realm) {
try {
@@ -118,8 +121,8 @@
try {
node = realm.getRepository().getNode(yarepPath);
} catch (Exception e) {
- log.warn("node '"+yarepPath+"' does not exist");
- log.warn("We did not login the user automatically although auto login cookie seems to exist!");
+ // TODO ...
+ //log.warn("Node '" + yarepPath + "' does not exist. We did not login the user automatically although auto login cookie seems to exist!");
return false;
}
More information about the Yanel-commits
mailing list