Subversion Repositories SmartDukaan

Rev

Rev 32574 | Rev 34300 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 32574 Rev 32953
Line 412... Line 412...
412
            }
412
            }
413
            if (user == null) {
413
            if (user == null) {
414
                user = userRepository.selectBySecondryEmailId(loginDetails.getEmailId());
414
                user = userRepository.selectBySecondryEmailId(loginDetails.getEmailId());
415
            }
415
            }
416
            user.setLogoutTimestamp(LocalDateTime.now());
416
            user.setLogoutTimestamp(LocalDateTime.now());
417
            userRepository.persist(user);
-
 
418
            cookiesProcessor.removeCookies(request, response);
417
            cookiesProcessor.removeCookies(request, response);
419
            LOGGER.info("Logout is successfull, should be redirect to /login");
418
            LOGGER.info("Logout is successfull, should be redirect to /login");
420
            return "redirect:/login";
419
            return "redirect:/login";
421
        } catch (ProfitMandiBusinessException profitMandiBusinessException) {
420
        } catch (ProfitMandiBusinessException profitMandiBusinessException) {
422
            LOGGER.info("Error occured while removing requested cookies, should be redirect to /login");
421
            LOGGER.info("Error occured while removing requested cookies, should be redirect to /login");