Examples of updatePassword()


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()

  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()

      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()

    // different mechanism to protect the password from being read
    // sebawagner, 01.10.2012
    try {
      String pass = passwordField.getConvertedInput();
      if (pass != null&& !pass.isEmpty()) {
        u.updatePassword(
          Application.getBean(ManageCryptStyle.class)
          , Application.getBean(ConfigurationDao.class)
          , passwordField.getConvertedInput());
      }
      Application.getBean(UsersDao.class).update(u, WebSession.getUserId());
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.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 (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
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.