授权属性不起作用 MVC 5 [英] Authorize attribute not working MVC 5
本文介绍了授权属性不起作用 MVC 5的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已将模型分成特定项目
I have separated the Models into Specific project
在那之后 MVC 默认 [Authorize] 属性在我的应用程序中不起作用
After that MVC default [Authorize] attribute not working in my application
当我尝试登录应用程序时,它不是登录应用程序,也不是重定向到特定页面
When i try to login the application it is not login the application nor it is redirecting to the specific page
推荐答案
你有这样的事情吗
<authentication mode="Forms">
<forms loginUrl="~/Account/Login" timeout="2880" />
</authentication>
在您的 web.config 中?
in your web.config?
这篇关于授权属性不起作用 MVC 5的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文