Questions tagged [simplemembership]

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

596 questions
0
votes
2 answers

SimpleMembership in ASP.net

Just wondering can you add this to any ASP.NET 4.5 project, or does it have to be an MVC one? I like the idea of being able to use the customisation of SimpleMembership. Also are there any good tutorials or demos on how to add this to a…
thatuxguy
  • 2,418
  • 7
  • 30
  • 51
0
votes
1 answer

Require unique Email AND Username

It's easy to use SimpleMembership in ASP.net MVC 4 to require users to enter a unique username - or swap that out for a unique email. However - whats the easiest way to require both a unique username AND email when registering?
niico
  • 11,206
  • 23
  • 78
  • 161
0
votes
1 answer

Customizing SimpleMembership with my own Database in MVC 4 / EF

I am working on a project using ASP.Net MVC4 where I use SimpleMembership to deal with membership system . In addition of UserProfile table where should I store default data, I have two tables in my own database (Student , Teacher ) . I customized…
0
votes
2 answers

Security of SimpleMemberShip

I have a question. I am looking at the newly implemented Simple Membership Provider and it suits my needs out of the box. I am however a little concerned about this provider as I am looking at creating a custom web application for myself and would…
0
votes
1 answer

MVC4, UnitOfWork + DI, and SimpleAuthentication .. how to decouple?

I'm currently working on an MVC4 project, i make use if Ninject to inject a UnitOfWork into my controllers, and I'm using UnitOfWork + Generic Repository pattern. I don't like VS2012 MVC4 template because it directly uses database access (db…
0
votes
1 answer

MVC4, SimpleMembershipProvider, MySql and FluentNhibernate

I am trying to use SimpleMembership with MySql and I cant get it to work. I downloaded the latest devart connector for MySql and followed the instructions on http://www.devart.com/dotconnect/mysql/articles/extendedmembership-tutorial.html The…
0
votes
0 answers

SimpleMembership without external logins?

I have just started with some articles about SimpleMembership and I really like it, but I would like it more without the external logins (Facebook, Twitter, OAuth). They're not enabled by default, but in almost every account model or view there is a…
josefpospisil0
  • 155
  • 2
  • 11
0
votes
1 answer

prevent full page reload when partial fail - login register

I create a single page to manage login and registration task in my mvc 4 app. when i create a user using registration, and registration fails - eg password mismatch - the page process the error and refresh but inserting a complete page in the…
s_h
  • 1,476
  • 2
  • 27
  • 61
0
votes
1 answer

Confirmation Url comes up as a string in Hotmail

I have this in my Account Controller Register: var token = WebSecurity.CreateUserAndAccount( model.UserName, model.Password, new { model.Email …
Komengem
  • 3,662
  • 7
  • 33
  • 57
0
votes
1 answer

ASP.Net MVC 4 Global properties Like Profile Settings

I'm looking to have something like a profile provider in my ASP.NET MVC 4 that is using SimpleMembership. Correct me if I'm wrong by I don't think they've included the profileProviders into the simpleMembership yet. (I was not able to find an…
hjavaher
  • 2,589
  • 3
  • 30
  • 52
0
votes
2 answers

SimpleMembershipProvider with MySQL in MVC4

I'm facing with strange problem with SimpleMembershipProvider. I ran an example MVC4 project in VS11 and created my own database which contains table "userprofile" with two fields "UserId" and "UserName". Moreover I connected my MySQL database with…
elklusek
  • 49
  • 7
0
votes
1 answer

WebSecurity.ConfirmAccount(Id) is always false

Ive got a problem: my websecurity always throws false on confirmation. What am I doing wrong? Here is my Validate Action(Ive debugged it, the id received is the right confirmation token: public ActionResult Validate(String Id) { if…
CodeDemen
  • 1,841
  • 3
  • 17
  • 30
0
votes
1 answer

User profile in Session variable

I've a pretty basic question related to user profile storage along a session. Let's say that I've an Account table that stores user profiles and that I've linked this table to ASP.NET SimpleMembership. Once a user is logged in, controllers may need…
ThomasWeiss
  • 1,292
  • 16
  • 30
0
votes
1 answer

Dynamic Roles/Hierarchy with SimpleMembership

I finally got my MVC 4 application all set up with SimpleMembership, but now have run into a new problem. I have a menu system (in a sidebar) that gives users access to various functionality throughout the app. I recently realized that, in order…
AJ.
  • 16,368
  • 20
  • 95
  • 150
0
votes
1 answer

MembershipCreateUserException: The username is already in use

I've created the simple membership tables myself so that I have the ability to update the username field(can't do this if you just let it autocreate it for you). var confirmationToken = WebSecurity.CreateUserAndAccount(model.UserName,…
zms6445
  • 317
  • 6
  • 22