Package org.jayasoft.woj.portal.business.services.users

Examples of org.jayasoft.woj.portal.business.services.users.UserService.update()


                       
                        String newPassword = AlphaNumericalPassGenerator.INSTANCE.generate();
                        u.setPassword(ChecksumUtil.encodeAsString(ChecksumUtil.SHA_1, newPassword));
                       
                        LOGGER.debug("changing password for user " + u.getLogin() + "[" + newPassword + ":" + u.getPassword() + "]");
                        us.update(u);
                        Portal.getInstance().getMailService().asyncSendMail(Portal.getInstance().getMailFactory().createRetrievePasswordMail(u.getEmail(), u.getLogin(), newPassword));
                       
                        return null;
                    }
                }
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.