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", "program": "${workspaceFolder}/bin/Debug/netcoreapp2.2/qbridge.dll",
"args": [], "args": [],
"cwd": "${workspaceFolder}", "cwd": "${workspaceFolder}",
"launchBrowser": { //Launch browser is deprecated, this was copied from RAVEN but is no longer how it's done.
"enabled": true, // "launchBrowser": {
//"args": "${auto-detect-url}/auth/", // "enabled": true,
"windows": { // //"args": "${auto-detect-url}/auth/",
"command": "cmd.exe", // "windows": {
//"args": "/C start http://localhost:7575/api/v8/" // "command": "cmd.exe",
"args": "/C start ${auto-detect-url}/qbridge/", // //"args": "/C start http://localhost:7575/api/v8/"
}, // "args": "/C start ${auto-detect-url}/qbridge/",
"osx": { // },
"command": "open" // "osx": {
}, // "command": "open"
"linux": { // },
"command": "xdg-open" // "linux": {
} // "command": "xdg-open"
}, // }
// },
"stopAtEntry": false, "stopAtEntry": false,
// Enable launching a web browser when ASP.NET Core starts. For more information: https://aka.ms/VSCode-CS-LaunchJson-WebBrowser // Enable launching a web browser when ASP.NET Core starts. For more information: https://aka.ms/VSCode-CS-LaunchJson-WebBrowser
"serverReadyAction": { "serverReadyAction": {
"action": "openExternally", "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": { "env": {
"ASPNETCORE_ENVIRONMENT": "Development" "ASPNETCORE_ENVIRONMENT": "Development"

View File

@@ -44,11 +44,15 @@ namespace qbridge.Controllers
<label for=""uname""><b>User name</b></label> <label for=""uname""><b>User name</b></label>
<input type=""text"" placeholder=""Enter Username"" id=""uname"" name=""uname"" required> <input type=""text"" placeholder=""Enter Username"" id=""uname"" name=""uname"" required>
</div> </div>
<br/>
<div> <div>
<label for=""pwd""><b>Password</b></label> <label for=""pwd""><b>Password</b></label>
<input type=""password"" placeholder=""Enter Password"" id=""pwd"" name=""pwd"" required> <input type=""password"" placeholder=""Enter Password"" id=""pwd"" name=""pwd"" required>
</div> </div>
<br/>
<div>
<button type=""submit"">Login</button> <button type=""submit"">Login</button>
</div>
</div> </div>
</form> </form>
@@ -70,7 +74,7 @@ namespace qbridge.Controllers
[HttpPost] [HttpPost]
public IActionResult Index([FromForm]string uname,[FromForm]string pwd) public IActionResult Index([FromForm]string uname,[FromForm]string pwd)
{ {
return Content($"Hello {uname}, password: {pwd}"); return Content($"Uname: {uname}, Password: {pwd}");
} }