Author: azaniah | Posted on: 3/10/2010 6:21:40 AM | Views : 432

A couple of questions.
Building a test site for a development. I'd like to be able to access the create user controls, but only as an Admin. So that no end user can register themselves. (Due to restrictions on the site purpose etc).
Essentially I want to be able to create the user, but not be authenticated as that user (as the person creating the user will already be an admin).
As I'm using a custom provider, I don't think I can use the asp.net configuration option.
 
Also, is there any way in a custom membership provider to not use a GUID / Int as the providerUserKey? I know this sounds crazy, however the UserId will be tightly controlled by the process above (i.e. members cannot register themselves) and other factors in the design would mean this is useful.
 
If the above isn't possible directly, is there anyway to create a user in SQL directly but have the correct encryption? I'd ra ...

Go to the complete details ...