How can I attach a custom membership provider in my ASP.NET MVC application?

前端 未结 3 1796
陌清茗
陌清茗 2020-12-09 06:58

How do I tie up my custom membership provider with my ASP.NET MVC [Authorize()] attribute? I\'ve blasted through a number of tutorials for how to create a custom membership

3条回答
  •  孤城傲影
    2020-12-09 07:19

    How much did you change in this custom membership? Like did you change table names around? Can you log users in and stuff? Ie is your custom membership working?

    If you changed lots of stuff around like you changed the roles table name to something different or stuff like that then your going to have to override the Authroize tag.

    However if your custom membership is not working then you probably have not configured it right and configuring is the same as in webforms. You just have to setup your webconfig.

      
        
          
            
            
          
        
        
          
            
            
          
        
        
          
            
            
            
          
        
    

提交回复
热议问题