tugberkugurlu / AspNet.Identity.RavenDB

Fully asynchronous, new and sweet ASP.NET Identity implementation for RavenDB
MIT License
42 stars 28 forks source link

Users stored as RavenUsers rather than ApplicationUsers #34

Open Chaddeus opened 10 years ago

Chaddeus commented 10 years ago

In version 1.0, users were stored as ApplicationUsers/# (i.e. ApplicationUsers/225). I understand the need to move to /UserName to ensure uniqueness, but instead of ApplicationUsers/UserName, my user accounts under 2.0 are being saved as RavenUsers/UserName (even though I do derive ApplicationUsers from RavenUsers to add my own custom properties).

I create users like this:

var user = new ApplicationUser(model.UserName) {
    DateRegistered = DateTime.UtcNow,
    DateLastConnected = DateTime.UtcNow
};
user.SetEmail(model.Email);

var result = await UserManager.CreateAsync(user, model.Password);

I just want to make sure this is how it will always remain even when 2.0 becomes stable... If so, I'll move all my user accounts to the new naming convention.