Hi,
I have a problem with existing customers from an old site, coming to
my new asp.net 2.0 site with the user roles and membership, and trying
to login with their old details.
As you know, the new built in membership encrypts passwords (I know
you can use the system without encrypting the passwords, but this what
i have unfortunetaly gone with), so I can not simply import the data
from the old database into the new one.
My idea was to create users on the fly if they try to log in user
their old details. Basically, when a user try's to login, if their
details dont exist in the new site, I will then search the old
database on LoginError using the details they have just provided
trying to login. If they are found in the old database, then I will
use their old details and create a new account for them.
So I can get their username and password which they type into the
Login Control, then I search the old database and get their details,
but then how can I go about creating a new account for them using the
asp.net memberships?
i.e. basically dynamically adding their details into the
CreateUserControl, and creating a user, but without the user seeing
this going on?
Is there such a way to do this?
or is there an easier way to import their old details into the new
system and encrypt their passwords?
Thanks