Tuesday 12 July 2005 9:19:22 am
no, situation is like this: there is no login info in the old database. just anagraphic info, and other info which is relevant to the other clients which are using it. Due to contract limits, I cannot import this data into eZpublish. I have to access and write it through my own extension, and keep it on a separate db. After login, Program logic then goes like this:
1- eZ user profile 's IDAnagraphic field is >0 ? ok, take her to the page she wanted to access.
2- else, ask for the relevant data fields which could determine whether she has a profile in the legacy database.
2a- if check is positive, write the relevant foreign key value into her ezUser IDAnagraphic field, and take her to her personal page. 2b-if check is negative, display the full input mask so that this data can be entered into the legacy database. then, update the IDAnagraphic field for her eZ profile and take her to her personal page. After rewriting this, I think that maybe the best hassle-free way for doing this is :
- let her login
- make login redirect to her personal page - incorporate points 2 ,2a, 2b into the logic of a custom template for her personal homepage. now I only have to discover how to make the login behavior correctly redirect to personal home page or to requested page depending on user profile status (1 or 2).
|