Package org.joget.directory.model.service

Examples of org.joget.directory.model.service.UserSecurity.encryptPassword()


                if (errors.isEmpty()) {
                    user.setId(user.getUsername());
                    if (user.getPassword() != null && !user.getPassword().trim().isEmpty()) {
                        user.setConfirmPassword(user.getPassword());
                        if (us != null) {
                            user.setPassword(us.encryptPassword(user.getUsername(), user.getPassword()));
                        } else {
                            //md5 password
                            user.setPassword(StringUtil.md5Base16(user.getPassword()));
                        }
                    }
View Full Code Here


                    u.setEmail(user.getEmail());
                    if (user.getPassword() != null && !user.getPassword().trim().isEmpty()) {
                        u.setConfirmPassword(user.getPassword());
                        if (us != null) {
                            passwordReset = true;
                            u.setPassword(us.encryptPassword(user.getUsername(), user.getPassword()));
                        } else {
                            //md5 password
                            u.setPassword(StringUtil.md5Base16(user.getPassword()));
                        }
                    }
View Full Code Here

                currentUser.setEmail(user.getEmail());
                currentUser.setTimeZone(user.getTimeZone());
                currentUser.setLocale(user.getLocale());
                if (user.getPassword() != null && user.getConfirmPassword() != null && user.getPassword().length() > 0 && user.getPassword().equals(user.getConfirmPassword())) {
                    if (us != null) {
                        currentUser.setPassword(us.encryptPassword(user.getUsername(), user.getPassword()));
                    } else {
                        currentUser.setPassword(StringUtil.md5Base16(user.getPassword()));
                    }
                    currentUser.setConfirmPassword(user.getPassword());
                }
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.