コード例 #1
0
        public IActionResult Login(HttpSession session, HttpResponse responce)
        {
            if (AuthenticationManager.IsAuthenticated(session.Id))
            {
                return(null);
            }

            return(this.View());
        }
コード例 #2
0
 public void Logout(HttpResponse response, HttpSession session)
 {
     AuthenticationManager.Logout(response, session.Id);
     this.Redirect(response, "/home/index");
 }