コード例 #1
0
        public ActionResult Login(LoginCommand command)
        {
            var loginUser = _systemUserLogic.Login(command.UserName, command.Password);

            FormsAuthenticateUser(loginUser.SystemUserId + "_" + Guid.NewGuid());
            return(Json(new { Success = true }));
        }
コード例 #2
0
        public AuthenticatedViewModel Login([FromBody] LoginUICommand command)
        {
            var authenticatedViewModel = _systemUserLogic.Login(command.Email, command.Password);

            return(authenticatedViewModel);
        }