If a user is logged in and the ChangePasswordRequired flag is set, i need to disregard the current action and redirect them to the ChangePassword action.
In other words, I do not want the user to be able to do anything until he or she changes his or her password.
Which method should my base controller override and how should I handle the redirect?
You should create your own action filter.
The exact type of action filter you want to use is one that implements
IAuthorizationFilterand the method you want to use it theOnAuthorizing()or close. This filter type is executed before all the others.Instead of the
[Authorize]filter you would use your own filter. Be sure to make your flag check and whether the user is authenticated (Request.IsAuthenticated)Kindness,
Dan