@Override public void login(String username, String password) throws ServletException { b.request.login(username, password); }
HttpServletRequest request = (HttpServletRequest) req; HttpServletResponse response = (HttpServletResponse) res; User user = request.getSession().getAttribute("user"); if (user == null) { String uuid = getCookieValue(request, COOKIE_NAME); if (uuid != null) { user = rememberDAO.find(uuid); if (user != null) { request.login(user.getUsername(), user.getPassword()); request.getSession().setAttribute("user", user); // Login. addCookie(response, COOKIE_NAME, uuid, COOKIE_AGE); // Extends age. } else { removeCookie(response, COOKIE_NAME); } } } if (user == null) { response.sendRedirect("login"); } else { chain.doFilter(req, res); }
/** {@inheritDoc} */ @Override public void login(String username, String password) throws ServletException{ final HttpServletRequest req = (HttpServletRequest)getRequest(); req.login(username, password); final String newId = req.getSession(false).getId(); if (!F.eq(newId, ses.getId())) { try { ses = createSessionV2(ses, newId); } catch (IOException e) { throw new IgniteException(e); } } }
@GetMapping("/v2/good-login") public String v2Login(HttpServletRequest request) throws ServletException { request.login("user2", "password2"); return this.principal(); }
@GetMapping("/good-login") public String login(HttpServletRequest request) throws ServletException { request.login("user", "password"); return this.principal(); }
/** {@inheritDoc} */ @Override public void login(String username, String password) throws ServletException{ HttpServletRequest req = (HttpServletRequest)getRequest(); req.login(username, password); String newId = req.getSession(false).getId(); this.ses.setId(newId); this.ses = createSession(ses, newId); this.ses.servletContext(ctx); this.ses.filter(WebSessionFilter.this); this.ses.resetUpdates(); }
request.login(username, password); User user = userService.find(username, password); externalContext.getSessionMap().put("user", user);
/** * The default behavior of this method is to call login on the wrapped * request object. * * @since Servlet 3.0 */ public void login(String username, String password) throws ServletException { this._getHttpServletRequest().login(username,password); }
@Override public void login(String username, String password) throws ServletException { getRequest().login(username, password); }
public void login(String username, String password) throws ServletException { getHttpServletRequest().login(username, password); }
request.login(username, password); current = userService.find(username, password); } catch (ServletException e) {
/** * @since Servlet 3.0 */ public void login(String username, String password) throws ServletException { request.login(username, password); }
/** * The default behavior of this method is to call login on the wrapped * request object. * * @since Servlet 3.0 */ @Override public void login(String username, String password) throws ServletException { this._getHttpServletRequest().login(username,password); }
/** * The default behavior of this method is to call login on the wrapped * request object. * * @since Servlet 3.0 */ public void login(String username, String password) throws ServletException { this._getHttpServletRequest().login(username,password); }
/** * @since Servlet 3.0 TODO SERVLET3 - Add comments */ @Override public void login(String username, String password) throws ServletException { this._getHttpServletRequest().login(username, password); }
/** * The default behavior of this method is to call login on the wrapped * request object. * * @since Servlet 3.0 */ @Override public void login(String username, String password) throws ServletException { this._getHttpServletRequest().login(username,password); }
/** * The default behavior of this method is to call login on the wrapped * request object. * * @since Servlet 3.0 */ @Override public void login(String username, String password) throws ServletException { this._getHttpServletRequest().login(username,password); }
/** * The default behavior of this method is to call login on the wrapped * request object. * * @since Servlet 3.0 */ @Override public void login(String username, String password) throws ServletException { this._getHttpServletRequest().login(username,password); }
/** * The default behavior of this method is to call login on the wrapped * request object. * * @since Servlet 3.0 */ @Override public void login(String username, String password) throws ServletException { this._getHttpServletRequest().login(username,password); }
/** * The default behavior of this method is to call login on the wrapped * request object. * * @since Servlet 3.0 */ public void login(String username, String password) throws ServletException { this._getHttpServletRequest().login(username,password); }