Package com.denimgroup.threadfix.service

Examples of com.denimgroup.threadfix.service.ThreadFixUserDetails


      if (userService.isCorrectPassword(databaseUser, user.getCurrentPassword())) {
        user.setHasChangedInitialPassword(true);
        user.setLastPasswordChangedDate(new Date());
        Object currentUserObject = SecurityContextHolder.getContext().getAuthentication().getPrincipal();
        if (currentUserObject instanceof ThreadFixUserDetails) {
          ThreadFixUserDetails details = (ThreadFixUserDetails) currentUserObject;
          details.setHasChangedInitialPassword(true);
        }
        userService.storeUser(user);
        status.setComplete();
        log.info("The User " + currentUserName + " has completed the password change.");
        ControllerUtils.addSuccessMessage(request, "The password change was successful.");
View Full Code Here

TOP

Related Classes of com.denimgroup.threadfix.service.ThreadFixUserDetails

Copyright © 2018 www.massapicom. 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.