Forums / Setup & design / custom user class

custom user class

Author Message

Jacek S

Thursday 16 November 2006 9:52:15 am

I had to collect some information about users so i have developed a custom class that represents user data. I also need to have an registration form witch is connect with this custom class.
I change my UserSettings to this:
[UserSettings]
GeneratePasswordIfEmpty=true
GeneratePasswordLength=6
AnonymousUserID=10
DefaultUserPlacement=219
DefaultSectionID=0
RegistrationFeedback=email
VerifyUserEmail=enabled
UserClassID=32 <<< this is ID of my custom class
UserGroupClassID=3
UserClassGroupID=2
UserCreatorID=14
HashType=md5_user
SiteName=tigayacht.pl
UpdateHash=true
AuthenticateMatch=login;email
#RequireUniqueEmail=true
RequireUniqueEmail=false
UseSpecialCharacters=false

When i try to register new user I'm still getting default registration form(connected with default user class).

What i have done wrong?

Claudia Kosny

Thursday 16 November 2006 10:00:07 am

Hi Thorgrim

Clear the cache and especially clear the session cookies on your browser.

If you have called up the register form when the old settings were active ez creates a draft for this new user (no matter whether you entered somethin in the registration form or not) and stores the contentobjectid of this user in the session. When you access the register page later with other settings but the same session, ez will use the draft.

Actually the above is just conjecture from the way it behaves on my system but clearing the cache and the sessions always worked for me.

Greetings from Luxembourg

Claudia

Jacek S

Friday 17 November 2006 8:09:11 am

Thanks for answer Claudia.
I forget about sessions cleaning and spend quite a long time just looking at confs, trying change something and doing ONLY cache cleaning.

Claudia Kosny

Friday 17 November 2006 8:38:01 am

Hi Thorgrim

Trust me, I know how you feel. I also just learned about the session after a long frustrating debug session which actually only ended because Windows Update wanted to restart my computer and thus cleared the session - I think that this was the first time I was grateful for this...

Claudia