Redirect to another page when user is not authorized in asp.net mvc3

前端 未结 5 1879
隐瞒了意图╮
隐瞒了意图╮ 2020-12-05 07:20

I\'ve read

How to easily redirect if not authenticated in MVC 3? and Redirect to AccessDenied page when user is not authorized but the link from an answer (means h

5条回答
  •  忘掉有多难
    2020-12-05 08:23

    Yes, it is correct as you mentioned in web.config

    
    

    redirection is looking for Account controller and LogOn actionresult. If you want to redirect your page, change there instead of account and logon

提交回复
热议问题