I've got this line which works perfectly:
// MembershipCreateStatus
var createStatus = MembershipService.CreateUser(model.Email, model.Password);
Now I want to get the ProviderUserKey
of the member that was just created. What is the easiest way to do this?
I would absolutely LOVE something like this:
MembershipUser member;
// create a new user and return the status and the member (if created).
var createStatus = MembershipService.CreateUser(model.Email, model.Password, out member);
But I'll settle for the just getting the ProviderUserKey
.