This commit is contained in:
2019-09-23 21:09:38 +00:00
parent 34cfc89d0b
commit cb2606fed1
2 changed files with 25 additions and 17 deletions

36
.vscode/launch.json vendored
View File

@@ -13,26 +13,30 @@
"program": "${workspaceFolder}/bin/Debug/netcoreapp2.2/qbridge.dll",
"args": [],
"cwd": "${workspaceFolder}",
"launchBrowser": {
"enabled": true,
//"args": "${auto-detect-url}/auth/",
"windows": {
"command": "cmd.exe",
//"args": "/C start http://localhost:7575/api/v8/"
"args": "/C start ${auto-detect-url}/qbridge/",
},
"osx": {
"command": "open"
},
"linux": {
"command": "xdg-open"
}
},
//Launch browser is deprecated, this was copied from RAVEN but is no longer how it's done.
// "launchBrowser": {
// "enabled": true,
// //"args": "${auto-detect-url}/auth/",
// "windows": {
// "command": "cmd.exe",
// //"args": "/C start http://localhost:7575/api/v8/"
// "args": "/C start ${auto-detect-url}/qbridge/",
// },
// "osx": {
// "command": "open"
// },
// "linux": {
// "command": "xdg-open"
// }
// },
"stopAtEntry": false,
// Enable launching a web browser when ASP.NET Core starts. For more information: https://aka.ms/VSCode-CS-LaunchJson-WebBrowser
"serverReadyAction": {
"action": "openExternally",
"pattern": "^\\s*Now listening on:\\s+(https?://\\S+)"
//"pattern": "^\\s*Now listening on:\\s+(https?://\\S+)",
//https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger-launchjson.md#specifying-the-browsers-url
"pattern": "^\\s*Now listening on:\\s+http://\\S+:([0-9]+)",
"uriFormat": "http://localhost:%s/qbridge/"
},
"env": {
"ASPNETCORE_ENVIRONMENT": "Development"

View File

@@ -44,11 +44,15 @@ namespace qbridge.Controllers
<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>
@@ -70,7 +74,7 @@ namespace qbridge.Controllers
[HttpPost]
public IActionResult Index([FromForm]string uname,[FromForm]string pwd)
{
return Content($"Hello {uname}, password: {pwd}");
return Content($"Uname: {uname}, Password: {pwd}");
}