开发者

MVC3 authentication and login

I am new to mvc3 and I am trying to create a login. I do not want to use the LogOn view. Basically, the user will enter his/her username and password,then I ll check it if the user exists in my database,th开发者_运维知识库en if the user exists,he/she will go through next page.I have implemented the searching part of the user in database.Could you help me?


In your LogOn controller action, once you have verified the credentials of the user against your database and emitted the authentication cookie you could simply return a RedirectToAction:

return RedirectToAction("SomeNextAction", "SomeController");
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜