I am using MVC 4 and SQL Server with my application database. I want to add user authentication where the user will have extra fields when registering (e.g. address, telephone, etc...). What is the correct way to accomplish this?
I have considered the following options:
Generate a separate
aspnetdb
db and authenticate against it, alter the user columns in it and use the main application db after authentication, presumably using sessions to store user info.Don't create a
aspnetdb
, but add theaspnetdb
tables to the application db and add additional fields to the relevant generated table.As #2 above, but create a separate user table in the application db and join the relevant
aspnetdb
on an existing table.