details: /erp/devel/pi/rev/3f1cf9ab4e4b
changeset: 10572:3f1cf9ab4e4b
user: Stefan Hühner <stefan.huehner <at> openbravo.com>
date: Fri Feb 11 14:22:00 2011 +0100
summary: Fix changing password for roles different than System Administrator.
Do an explicit dal-flush inside the adminMode block work around flush at end of
the http-request which didn't have access to ad_user table anymore.
diffstat:
modules/org.openbravo.client.application/src/org/openbravo/client/application/navigationbarcomponents/UserInfoWidgetActionHandler.java
| 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diffs (11 lines):
diff -r ae5c327c567f -r 3f1cf9ab4e4b
modules/org.openbravo.client.application/src/org/openbravo/client/application/navigationbarcomponents/UserInfoWidgetActionHandler.java
---
a/modules/org.openbravo.client.application/src/org/openbravo/client/application/navigationbarcomponents/UserInfoWidgetActionHandler.java
Fri Feb 11 14:10:55 2011 +0100
+++
b/modules/org.openbravo.client.application/src/org/openbravo/client/application/navigationbarcomponents/UserInfoWidgetActionHandler.java
Fri Feb 11 14:22:00 2011 +0100
@@ -139,6 +139,7 @@
return result;
}
user.setPassword(FormatUtilities.sha1Base64(newPwd));
+ OBDal.getInstance().flush();
return ApplicationConstants.ACTION_RESULT_SUCCESS;
}
------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits