Change password working
authorMathieu Baudier <mbaudier@argeo.org>
Tue, 15 Sep 2015 18:39:26 +0000 (18:39 +0000)
committerMathieu Baudier <mbaudier@argeo.org>
Tue, 15 Sep 2015 18:39:26 +0000 (18:39 +0000)
git-svn-id: https://svn.argeo.org/commons/trunk@8402 4cfe0d0a-d680-48aa-b62c-e0a02a3f76cc

org.argeo.security.ui/src/org/argeo/security/ui/commands/OpenChangePasswordDialog.java

index ed3e2c13c7e8c1eaeebbaa791ff20fad5f31835e..b930b66338d681bd41dbd4d49ef987b4b7411e78 100644 (file)
@@ -76,9 +76,8 @@ public class OpenChangePasswordDialog extends AbstractHandler {
                try {
                        userTransaction.begin();
                        User user = (User) userAdmin.getRole(dn.toString());
-                       if (user.hasCredential(null, oldPassword)) {
+                       if (user.hasCredential(null, oldPassword))
                                user.getCredentials().put(null, newPassword);
-                       }
                        userTransaction.commit();
                } catch (Exception e) {
                        try {