Examples of updatePassword()


Examples of org.apache.openmeetings.persistence.beans.user.User.updatePassword()

              .getOmTimeZone((values.get("jnameTimeZone")
                  .toString())));

          String password = values.get("password").toString();
          if (password != null && !password.isEmpty()) {
            savedUser.updatePassword(cryptManager, configurationDao, password);
          }

          String email = values.get("email").toString();

          if (!email.equals(savedUser.getAdresses().getEmail())) {
View Full Code Here

Examples of org.apache.openmeetings.persistence.beans.user.User.updatePassword()

          if (level_id != 0) {
            us.setLevel_id(level_id);
          }
          if (password.length() != 0) {
            try {
              us.updatePassword(cryptManager, configurationDao, password);
            } catch (Exception e) {
              return new Long(-7);
            }
          }
          us.setAdresses(street, zip, town, statemanagement.getStateById(states_id),
View Full Code Here

Examples of org.apache.openmeetings.persistence.beans.user.User.updatePassword()

      if (language_id != 0) {
        users.setLanguage_id(new Long(language_id));
      } else {
        users.setLanguage_id(null);
      }
      users.updatePassword(cryptManager, configurationDao, userpass);
      users.setRegdate(new Date());
      users.setDeleted(false);
     
      //new user add organizations without checks
      if (orgIds != null) {
View Full Code Here

Examples of org.apache.openmeetings.persistence.beans.user.User.updatePassword()

      if (language_id != 0) {
        users.setLanguage_id(new Long(language_id));
      } else {
        users.setLanguage_id(null);
      }
      users.updatePassword(cryptManager, configurationDao, userpass, emptyPass);
      users.setRegdate(new Date());
      users.setDeleted(false);

      em.persist(users);
View Full Code Here

Examples of org.apache.openmeetings.persistence.beans.user.User.updatePassword()

              .getOmTimeZone((values.get("jnameTimeZone")
                  .toString())));

          String password = values.get("password").toString();
          if (password != null && !password.isEmpty()) {
            savedUser.updatePassword(cryptManager, configurationDao, password);
          }

          String email = values.get("email").toString();

          if (!email.equals(savedUser.getAdresses().getEmail())) {
View Full Code Here

Examples of org.apache.openmeetings.persistence.beans.user.User.updatePassword()

  public Object resetPassByHash(String hash, String pass) {
    try {
      Object u = this.getUserByHash(hash);
      if (u instanceof User) {
        User us = (User) u;
        us.updatePassword(cryptManager, configurationDao, pass);
        us.setResethash("");
        update(us, -1L);
        return new Long(-8);
      } else {
        return u;
View Full Code Here

Examples of org.apache.openmeetings.persistence.beans.user.User.updatePassword()

    User users = new User();
    // add user
    users.setFirstname("firstname" + rnd);
    users.setLastname("lastname" + rnd);
    users.setLogin("login");
    users.updatePassword(cryptManager, configurationDao, "pass" + rnd);
    users.setLanguage_id(1L);
    Long user_id = userManager.addUser(users);
    assertTrue("Cann't add user", user_id > 0);
    users = userManager.getUserByIdAndDeleted(user_id);
    assertNotNull("User should not be null", users);
View Full Code Here

Examples of org.graylog2.restclient.models.User.updatePassword()

        final User user = userService.load(username);

        if (checkRequireOldPassword(username) && request.old_password == null) {
            requestForm.reject("Old password is required.");
        }
        if (requestForm.hasErrors() || !user.updatePassword(request)) {
            flash("error", "Could not update the password.");
            return redirect(routes.UsersController.editUserForm(username));
        }

        flash("success", "Successfully changed the password for user " + user.getFullName());
View Full Code Here

Examples of org.jboss.portal.identity.User.updatePassword()

                     user = getUserModule().findUserByUserName(name);

                     //synchronize password from LDAP to DB
                     if (!user.validatePassword(password))
                     {
                        user.updatePassword(password);
                     }
                  }
                  catch (Exception e)
                  {
                     // nothing as user can simply not exist
View Full Code Here

Examples of org.jboss.portal.identity.User.updatePassword()

                     user = getUserModule().findUserByUserName(name);

                     //synchronize password from LDAP to DB
                     if (!user.validatePassword(password))
                     {
                        user.updatePassword(password);
                     }
                  }
                  catch (Exception e)
                  {
                     // nothing as user can simply not exist
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.