I am working on mvc4 default internet project, which uses the above mentioned method for creating user account.This method is working fine for me but I am not able to understand how it checks that username is already present in default database.
I am relatively new to MVC 4, please help me.
The
WebSecurityclass is a wrapper around theSimpleMembershipProviderclass.WebSecurity.CreateUserAndAccountmakes an indirect call toSimpleMembershipProvider.CreateAccountwhich includes the following code:You can check the source code for WebSecurity here: http://aspnetwebstack.codeplex.com/SourceControl/latest#src/WebMatrix.WebData/WebSecurity.cs