At the moment I am working with a MVC4 application and a database. I want to use the default login and register procedure/ methods.
I am using a table with user information like, firstname, surname, password, email...
I just want to use my database with the default register/ login methods. On the internet I read several topics, but none of them give me a correct answer.
This is what I have already did:
1 Use SimpleMembership
So I added:
<add key="enableSimpleMembership" value="true">
2 Added fields to the RegisterModel
3 Change the CreateUserAndAccount parameters too:
WebSecurity.CreateUserAndAccount(model.Email, model.Password, new {FirstName = model.UserName, SurName = model.UserName}, false);
Is this the best way to solve this problem or are there other solutions?
Thank you in advance!