asp.net - vNext: Form method POST not working with Debian/Kestrel -


i trying build simple asp.net vnext application.

i have simple client-side html code:

<!doctype html> <html> <body> <form action="/home/login" method="post">     login: <input type="text" name="login"><br>     password: <input type="text" name="password"><br>     <input type="submit" value="submit"> </form> </body> </html> 

and have simple server-side code handle post action:

    [httppost]     [allowanonymous]     public iactionresult login(string login, string password)     {         if (validate(login, password))         {             var claims = new[] { new claim(claimtypes.name, login) };              var identity = new claimsidentity(claims, cookieauthenticationdefaults.authenticationtype);              context.response.signin(identity);              return redirecttoaction("index", "home");         }          return redirecttoaction("login", "home");     } 

with windows/iis express works fine, debian/kestrel not works, server method login in not invoked.

so, question - how make work debian?


Comments

Popular posts from this blog

node.js - Mongoose: Cast to ObjectId failed for value on newly created object after setting the value -

gradle error "Cannot convert the provided notation to a File or URI" -

python - NameError: name 'subprocess' is not defined -