Login failed for user after implementing Roles for Aspnemvc

+2 votes
asked Mar 16, 2016 by Gurthey (470 points)
I'm pretty new to MVC, so I'm still learning how everything runs.

4 Answers

0 votes
answered Apr 19, 2016 by lingel7526 (610 points)
Best answer

This means that different user can be defined which different roles.
commented Apr 21, 2016 by V_1592_Schuy (280 points)
Can we access current username through User
+1 vote
answered May 15, 2016 by Tepper3417 (810 points)

Would i need to write a custom provider for roles.
The other way we can do it is by specifying the roles and rights in web. Also, why have you used Session to access usernames.

To do so, see Understanding and Implementing ASP.NET Custom Forms Authentication - CodeProject I have registered the application
0 votes
answered May 19, 2016 by omnima (570 points)

This constructs the menu items the current user is allowed to use.
Share your opinion about how you are implementing role based navigation in ASP.
If user is not authenticated, Show links having All or Anonymous role.
0 votes
answered Jun 2, 2016 by breyfogle (980 points)
I also found that this was a permissions problem. For more info on these builders check out http://www.codeproject.com/Articles/408306/Understanding-and-Implementing-ASP-NET-Custom-Form
commented Jun 4, 2016 by Example (310 points)
Thumbs upI could not do the example
commented Jun 4, 2016 by pbzCorra (100 points)
Now, // Date/time issued DateTime
commented Jun 4, 2016 by triffo_Case (150 points)
Understanding, Using and Customizing ASP

What is Geekub?

Q&A site for professional and enthusiast programmers, software developers and other technical users. With your help, we hope to work together to build a library of detailed answers to just about any question that is related to programming!