Author: truong.le
Date: 2009-12-23 04:50:44 -0500 (Wed, 23 Dec 2009)
New Revision: 1139
Modified:
portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/webui/login/UIResetPassword.java
Log:
GTNPORTAL-367: Can not change new recovered password
Modified:
portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/webui/login/UIResetPassword.java
===================================================================
---
portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/webui/login/UIResetPassword.java 2009-12-23
09:41:20 UTC (rev 1138)
+++
portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/webui/login/UIResetPassword.java 2009-12-23
09:50:44 UTC (rev 1139)
@@ -102,7 +102,7 @@
OrganizationService orgService =
uiForm.getApplicationComponent(OrganizationService.class);
uiForm.reset();
boolean isNew = true;
- if (!password.equals(user_.getPassword()))
+ if (!orgService.getUserHandler().authenticate(user_.getUserName(), password))
{
uiApp.addMessage(new
ApplicationMessage("UIResetPassword.msg.Invalid-account", null));
isNew = false;
Show replies by date