コード例 #1
0
        // Attempt Login Redirect:
        public JsonResult OnGetAttemptLogin()
        {
            // Get the query string:
            var    queryStringObject = Request.QueryString;
            string queryString       = queryStringObject.ToString();

            // Parse the query string and extract parameters:
            string[] queryParams = queryString.Split("&");
            string   username    = queryParams[1].Replace("username="******"");
            string   password    = queryParams[2].Replace("password="******"");

            // Attempt the login and return the response:
            return(new JsonResult(UserManagement.AttemptLogin(username, password)));
        }