How to Implement form Authentication in MVC?
Ask by Manish Kumar
Updated 23 Sep 2020
Step 1- Set the form authentication mode equals to form
Step 2-In web.config add following code
Inside system.web
Step 3-In this step we need to controller for checking authentication. Here we check that user is authorize or not.
In home controller add following code
Action decorated with Authorize cannot be called by unauthorized user.