# HG changeset patch
# User Prakash M <prakash@qualiantech.com>
# Date 1585804834 -19800
#      Thu Apr 02 10:50:34 2020 +0530
# Node ID a2708749dd0b1de8d0a12383fc6d5e93bfeeb825
# Parent  8138a7ebd1e83d43e24e368d7c909dc56e4f972a
Related to BUG-43372: Interchanged title and error message of SameAsoldPasswordError

diff -r 8138a7ebd1e8 -r a2708749dd0b src/org/openbravo/base/secureApp/LoginHandler.java
--- a/src/org/openbravo/base/secureApp/LoginHandler.java	Wed Apr 01 14:01:02 2020 +0000
+++ b/src/org/openbravo/base/secureApp/LoginHandler.java	Thu Apr 02 10:50:34 2020 +0530
@@ -605,7 +605,7 @@
           .uniqueResult();
 
       if (PasswordHash.matches(newPassword, user.getPassword())) {
-        throwChangePasswordException("CPDifferentPassword", "CPSamePasswordThanOld", language);
+        throwChangePasswordException("CPSamePasswordThanOld", "CPDifferentPassword", language);
       } else if (!passwordStrengthChecker.isStrongPassword(newPassword)) {
         throwChangePasswordException("CPWeakPasswordTitle", "CPPasswordNotStrongEnough", language);
       } else {
