Author: thomas.heute(a)jboss.com
Date: 2009-11-26 14:18:36 -0500 (Thu, 26 Nov 2009)
New Revision: 822
Modified:
portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/account/UIAccountChangePass.java
Log:
GTNPORTAL-280: show message wrong when input correct password of user in Accout profile
form
Use authenticate(), it has a slight side effect as it updates the last connection date
Modified:
portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/account/UIAccountChangePass.java
===================================================================
---
portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/account/UIAccountChangePass.java 2009-11-26
19:08:03 UTC (rev 821)
+++
portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/account/UIAccountChangePass.java 2009-11-26
19:18:36 UTC (rev 822)
@@ -84,7 +84,7 @@
String newPass = uiForm.getUIStringInput("newpass").getValue();
String confirmnewPass =
uiForm.getUIStringInput("confirmnewpass").getValue();
- if (!currentPass.equals(user.getPassword()))
+ if (!service.getUserHandler().authenticate(username, currentPass))
{
uiApp.addMessage(new
ApplicationMessage("UIAccountChangePass.msg.currentpassword-is-not-match", null,
1));
uiForm.reset();
Show replies by date