Simple user/password protection in asp.net MVC -


a simple problem, maybe has tip mvc beginner me. want password protect mvc application - on user / password necessary - did via aspnetdb , sqlmembershipprovider, there should easier way - in webforms did via adding user / password web.config.

do need write own xmlmembershipprovider solve problem? if yes, know simple existing xmlmembershipprovider can me? many in advance..

you don´t need use membership provider in order password protect application. have provide service validate user credentials. can here idea on how that. basically, need generate salt , hash user password using salt (and password provided). store salt , hashed password in db. try it, not difficult. after have validated user´s credentials, can use code wrote in question use forms authentication.

cheers!


Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

html - Instapaper-like algorithm -

c# - How to execute a particular part of code asynchronously in a class -