02 Dec 2005
04 Nov 2008
Link to this post
I'm hoping someone can help a Sitefinity newbie with some sage advice. We have a custom ecommerce database that holds all our customer accounts, which includes email, password, security question, and answer, etc. We would like to build a site using sitefinity that would allow anonymous visitors to login using a custom login user control and using their credentials from the ecommerce db, (without having to create sitefinity user accounts for every one of them). Once validated against the ecommerce db, we need to be able to change the anonymous visitor's sitefinity role from anonymous to a "Customer" role that we have defined in sitefinity. Since the visitor has no sitefinity user account, I don't think we can use any of the AddUserToRole functions in CMSUserManager or in the Roles class, as there is no sitefinity user...
When the user logs in, we put various data keys into their session so that our custom user controls for the shopping cart and account information manager will retrieve the visitors correct records, but we need help in figuring out how to tell Sitefinity to treat this particular visitor/session as a "Customer". Is there any sample code in this area?