Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-10612

User that changes his password should not be disconnected

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.6
    • Fix Version/s: 5.6.0-HF16, 5.7.1
    • Component/s: None

      Description

      There is some code since before 5.1.6 that does that :

      public String changePassword() throws ClientException {
      
              updateUser();
      
              ...
      
              if (selectedUser.getId().equals(currentUser.getName())) {
                  // If user changed HIS password, reset session
                  Session.instance().invalidate();
                  return navigationContext.goHome();
              } else {
                  return "view_user";
              }
          }
      

      I did not find any good justification for this code :

      • I don't see why we would need that
      • I did not find anything in history (history before 5.1.6 is hard to browse)

      This means I will remove this code !

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: