1 Reply Latest reply on Jul 12, 2010 11:22 PM by Herberson Silva

    NotLoggedInException on identityManager.changePassword

    christine karman Newbie
      In the process of requiring a user to set a new password, I use this code:

              new RunAsOperation() {

                  public void execute() {
                      try {
                          identityManager.changePassword(email, password);
                      catch (Exception e) {
                          log.error("change password error " + e.getCause());

      changePassword throws a NotLoggedIn exception, but I don't see why. Should a user be logged in in order for them to change their password, when they have the "admin" role? I added identity.login() to the code, to no avail.