本文介绍了授权属性不工作MVC 5的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经分居的模型转换成具体的项目
I have separated the Models into Specific project
之后MVC默认的[授权]属性不是在我的应用程序的工作。
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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!