For certain actions like changing email settings or administrator activities, I want users to re-authenticate before the action is completed. Is there a good pattern for doing this in ASP.NET MVC 3?
For certain actions like changing email settings or administrator activities, I want users to
Share
Descpription
You can create your ActionMethod with
Username,Passwordand the field you want to change (Email) for example. Than validate this data in the[HttpPost]of your data. If the authorization has success, change it and if not add the error to theModelState.Use a ViewModel for that.
Sample