[Yanel-commits] rev 44569 -
public/yanel/trunk/src/contributions/resources/forgotpw/src/java/org/wyona/yanel/impl/resources/forgotpw
michi at wyona.com
michi at wyona.com
Wed Sep 2 16:23:50 CEST 2009
Author: michi
Date: 2009-09-02 16:23:50 +0200 (Wed, 02 Sep 2009)
New Revision: 44569
Modified:
public/yanel/trunk/src/contributions/resources/forgotpw/src/java/org/wyona/yanel/impl/resources/forgotpw/ForgotPassword.java
Log:
session expired code started to refactor
Modified: public/yanel/trunk/src/contributions/resources/forgotpw/src/java/org/wyona/yanel/impl/resources/forgotpw/ForgotPassword.java
===================================================================
--- public/yanel/trunk/src/contributions/resources/forgotpw/src/java/org/wyona/yanel/impl/resources/forgotpw/ForgotPassword.java 2009-09-02 14:11:21 UTC (rev 44568)
+++ public/yanel/trunk/src/contributions/resources/forgotpw/src/java/org/wyona/yanel/impl/resources/forgotpw/ForgotPassword.java 2009-09-02 14:23:50 UTC (rev 44569)
@@ -160,13 +160,17 @@
*
*/
private User findRepoUser(String usrGuid, long duration_hour) throws Exception {
+ log.warn("DEBUG: Find user: " + usrGuid);
User upUser = null;
Map<String, ResetPWExpire> pwHM = getOblivionMap(getEnvironment().getRequest());
ResetPWExpire resetObj = pwHM.get(usrGuid);
if (resetObj == null) {
- Node [] children = null;
- children = getRealm().getRepository().getNode("nodePath").getNodes();
+ log.warn("DEBUG: Reset object is null!");
+
+ log.warn("TODO: Implementation not finished!");
+/*
+ Node[] children = getRealm().getRepository().getNode("nodePath").getNodes();
DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
DocumentBuilder db = null;
db = dbf.newDocumentBuilder();
@@ -184,6 +188,7 @@
upUser = realm.getIdentityManager().getUserManager().getUser(userid);
}
}
+*/
} else {
boolean check = validGuid(resetObj.getDateTime(), duration_hour);
if(check) {
@@ -236,6 +241,9 @@
return action;
}
+ /**
+ *
+ */
private Map<String, ResetPWExpire> getOblivionMap(HttpServletRequest request) throws Exception {
javax.servlet.http.HttpSession session = request.getSession(true);
Map<String, ResetPWExpire> pwHM = (Map<String, ResetPWExpire>) session.getAttribute("pwreset");
More information about the Yanel-commits
mailing list