Package org.jtalks.jcommune.web.util

Examples of org.jtalks.jcommune.web.util.MutableHttpRequest.addParameter()


            throws UnexpectedErrorException, NoConnectionException {
        try {
            userService.activateAccount(uuid);
            JCUser user = userService.getByUuid(uuid);
            MutableHttpRequest wrappedRequest = new MutableHttpRequest(request);
            wrappedRequest.addParameter(AbstractRememberMeServices.DEFAULT_PARAMETER, "true");
            LoginUserDto loginUserDto = new LoginUserDto(user.getUsername(), user.getPassword(), true, getClientIpAddress(request));
            loginWithLockHandling(loginUserDto, wrappedRequest, response, plainPasswordUserService);
            return "redirect:/";
        } catch (NotFoundException e) {
            return "errors/activationExpired";
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.