I am trying to create simple asp.net vnext application
I have simple client-side HTML code:
Password: & lt; Input type = "text" name = "password" & gt; & Lt; Br> & Lt; Input type = "submit" value = "submit" & gt; & Lt; / Form & gt; & Lt; / Body & gt; & Lt; / Html & gt;
And I have simple server-side code to handle post work:
[HttpPost] [AllowAnonymous] Public IActionResult login (string login, String password) {if valid (login, password)) {var claims = new [] {new claim (type claim .name, login)}; Var identification = new claim identification (claim, cookie attestation default. Authentication type); Context.Response.SignIn (Identity); Redirect Action ("Index", "Home"); } Return Redirect Action ("Login", "Home"); }
This works fine with Windows / IIS Express, it does not work with Debian / Castell, server method is not logged in.
So, my question is - how is it working with Debian?
No comments:
Post a Comment