Questions tagged [simplemembership]

SimpleMembership is the default membership provider in ASP.NET MVC4. It supports a customized User table and OAuth.

596 questions
3
votes
1 answer

What is the difference between MVC5 identity and MVC4 simple membership?

I am building an MVC 5 application and the build in membership function in a basic MVC 5 project is MVC5 Identity. I am familiar to MVC 4 simple membership, but i want to use the new functions of MVC 5. The identity seems a little lean and you have…
3
votes
2 answers

ASP.NET MVC Remember me

I've got a project based in ASP.NET MVC 4 that simple authentication. I'm trying to get my site to automatically log the user in when they check the remember me checkbox. However I'm having problems getting this working. After closing down the…
Jay
  • 878
  • 3
  • 12
  • 22
3
votes
1 answer

Customizing UserProfile class SimpleMembershipProvider

I am new to MVC and I am trying to build a small test application to get a clear idea about how the SimpleMembershipProvider works in MVC 4. I have created two Roles - Student and Teacher. I have only one user with Teacher Role assigned(hard coded…
3
votes
4 answers

ASP.NET MVC 5 Default WebApp Forgot Password module missing?

In MVC 4 with SimpleMembership all these functions come with the default webbapp that you create in Visual Studio. I was wondering where I can find the same for MVC 5 using the new ASP.NET Identity membership system? Is there some official blog or…
3
votes
1 answer

WebSecurity.InitializeDatabaseConnection fails with "The Role Manager feature has not been enabled." when called from console program

I have a MVC4 application using SimpleMembership to authenticate users. I want to add users from a console program. The console program that references a class library that has the method that will do the user creation. It looks like this: public…
Johan Gov
  • 1,262
  • 1
  • 13
  • 26
3
votes
1 answer

MVC4 : User.IsInRole not working properly

I'm using the ASP.NET MVC SimpleMemberShip Provider, There isn't any problem for a while after I logged in. I check if user is Boss, this is working. if (User.IsInRole("Boss")) { //do something } But after a few minutes when I refresh the page…
3
votes
1 answer

Custom verification of password in ASP.NET SimpleMembership

I would like to verfiy a password, stored by SimpleMembership Provider. I have a website, made with ASP.NET 4.0 MVC using SimpleMembership and a backend admin tool made with ASP.NET WebForms 4.0. Due to the fact, that SimpleMembership needs ASP.NET…
3
votes
1 answer

initialize simple membership in MVC 4

I have a problem with my MVC 4 application which used to work fine, but stopped for some reason, and I cannot find out why. I use simple memebrship provider and code first approach. This is my Index action method in the home…
Bartosz
  • 4,542
  • 11
  • 43
  • 69
3
votes
1 answer

When does WebSecurity.ChangePassword fail when "new password is invalid"?

This is the code for changing a password in the default AccountController scaffolded in MVC 4: // ChangePassword will throw an exception rather //than return false in certain failure scenarios. bool changePasswordSucceeded; try { string…
Colin
  • 22,328
  • 17
  • 103
  • 197
3
votes
1 answer

MVC4 Simple Membership authentication with multiple databases or providers

I'm working on an MVC4 site using SimpleMembership to handle user accounts and role based authentication. We have another site and we'd like to implement a single sign on system allowing users from the existing site to log in to the one I am…
3
votes
1 answer

SimpleRole / SimpleMember - add user to role

MVC4 using SimpleMembership & Role. So after 18 hours of research, googling, trial & error, etc I finally have simpleMembership working. However, after multiple step-throughs and different scenarios, I cant find where the new user is assigned to a…
BattlFrog
  • 3,370
  • 8
  • 56
  • 86
3
votes
2 answers

How can i change the default database for simple membership tables

I would like to ask this quick question about the default simple membership database that comes with asp.net mvc 4.5 internet application , my question is about where does it create its tables when I first create new user does it create its table in…
3
votes
3 answers

Integrating SimpleMembership with Entity Framework

I'm trying to integrate the SimpleMembership tables with the rest of my Object Model - to manage all the entities from a single database and context. Up to now the best recipe I've found for manually spinning up the SM tables (the entry point to…
justSteve
  • 5,444
  • 19
  • 72
  • 137
3
votes
2 answers

.NET MVC4 SimpleMembershipProvider - Overriding Password Encryption/Storage?

I've got a production application that I'm looking to re-build (ground up) on MVC4. Usage of the SimpleMembershipProvider for authentication and authorization seems to be very suitable for my needs, except for one thing: password encryption. The…
3
votes
1 answer

Membership.DeleteUser is not deleting all related rows of the user

Membership.DeleteUser() manages to delete the userprofile of the user I am deleting. Why does it not also delete it's information stored in webpages_membership. I am not using roles at this point in time so keep that in mind for your answers.
zms6445
  • 317
  • 6
  • 22