Package org.jtalks.jcommune.web.util

Examples of org.jtalks.jcommune.web.util.MutableHttpRequest


    public String activateAccount(@PathVariable String uuid, HttpServletRequest request, HttpServletResponse response)
            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

Related Classes of org.jtalks.jcommune.web.util.MutableHttpRequest

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.