This commit is contained in:
@@ -18,64 +18,64 @@ namespace qbridge.Controllers
|
||||
|
||||
}
|
||||
|
||||
[HttpGet]
|
||||
public ContentResult Index()
|
||||
{
|
||||
var errorBlock = string.Empty;
|
||||
// [HttpGet]
|
||||
// public ContentResult Index()
|
||||
// {
|
||||
// var errorBlock = string.Empty;
|
||||
|
||||
var resp = $@"<html lang=""en"">
|
||||
<head>
|
||||
<meta charset=""utf-8"">
|
||||
<meta name=""viewport"" content=""width=device-width, initial-scale=1, shrink-to-fit=no"">
|
||||
<title>AyaNova QBOI bridge authorization server</title>
|
||||
<script src=/jquery-1.9.1.js></script>
|
||||
// var resp = $@"<html lang=""en"">
|
||||
// <head>
|
||||
// <meta charset=""utf-8"">
|
||||
// <meta name=""viewport"" content=""width=device-width, initial-scale=1, shrink-to-fit=no"">
|
||||
// <title>AyaNova QBOI bridge authorization server</title>
|
||||
// <script src=/jquery-1.9.1.js></script>
|
||||
|
||||
</head>
|
||||
<body >
|
||||
// </head>
|
||||
// <body >
|
||||
|
||||
<div style=""text-align: center;"">
|
||||
{errorBlock}
|
||||
<div style=""display: inline-block;text-align:left;"">
|
||||
<h1>QBOI Bridge</h1>
|
||||
// <div style=""text-align: center;"">
|
||||
// {errorBlock}
|
||||
// <div style=""display: inline-block;text-align:left;"">
|
||||
// <h1>QBOI Bridge</h1>
|
||||
|
||||
<form action=""/QBridge"" method=""post"">
|
||||
<div class=""container"">
|
||||
<div>
|
||||
<label for=""uname""><b>User name</b></label>
|
||||
<input type=""text"" placeholder=""Enter Username"" id=""uname"" name=""uname"" required>
|
||||
</div>
|
||||
<br/>
|
||||
<div>
|
||||
<label for=""pwd""><b>Password</b></label>
|
||||
<input type=""password"" placeholder=""Enter Password"" id=""pwd"" name=""pwd"" required>
|
||||
</div>
|
||||
<br/>
|
||||
<div>
|
||||
<button type=""submit"">Login</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
// <form action=""/QBridge"" method=""post"">
|
||||
// <div class=""container"">
|
||||
// <div>
|
||||
// <label for=""uname""><b>User name</b></label>
|
||||
// <input type=""text"" placeholder=""Enter Username"" id=""uname"" name=""uname"" required>
|
||||
// </div>
|
||||
// <br/>
|
||||
// <div>
|
||||
// <label for=""pwd""><b>Password</b></label>
|
||||
// <input type=""password"" placeholder=""Enter Password"" id=""pwd"" name=""pwd"" required>
|
||||
// </div>
|
||||
// <br/>
|
||||
// <div>
|
||||
// <button type=""submit"">Login</button>
|
||||
// </div>
|
||||
// </div>
|
||||
// </form>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>";
|
||||
// </div>
|
||||
// </div>
|
||||
// </body>
|
||||
// </html>";
|
||||
|
||||
|
||||
return new ContentResult
|
||||
{
|
||||
ContentType = "text/html",
|
||||
StatusCode = 200,
|
||||
Content = resp
|
||||
};
|
||||
// return new ContentResult
|
||||
// {
|
||||
// ContentType = "text/html",
|
||||
// StatusCode = 200,
|
||||
// Content = resp
|
||||
// };
|
||||
|
||||
}
|
||||
// }
|
||||
|
||||
[HttpPost]
|
||||
public IActionResult Index([FromForm]string uname,[FromForm]string pwd)
|
||||
{
|
||||
return Content($"Uname: {uname}, Password: {pwd}");
|
||||
}
|
||||
// [HttpPost]
|
||||
// public IActionResult Index([FromForm]string uname,[FromForm]string pwd)
|
||||
// {
|
||||
// return Content($"Uname: {uname}, Password: {pwd}");
|
||||
// }
|
||||
|
||||
|
||||
// public class CBUserModel
|
||||
|
||||
Reference in New Issue
Block a user