"Inandjo Taurel" <[EMAIL PROTECTED]> writes:
>yep lou, i did!
>Still on loggout, my turbine usr password comes back to the old one!
Did you fetch the user object from security service or did you use the
actual logged in user (the one you get with data.getUser()). I bet you
did the first one.
The problem is:
- data contains a (the actual logged in) user object.
- you fetch a second user object that represents you (the logged in
user) from the database.
- you change the password on this second user object.
- you save this second user object back into the database. At this point,
the second user object and the database contain the new password. The
user object in RunData (data.getUser()) still contains the old password.
- you log out. The user object in RunData gets saved back into the database.
Boom. You have the old password again in the database.
- There are two solutions:
a) - don't allow the current user to change its password. ;-)
b) - if you change the password for the current logged in user, don't
fetch a new user object from the database but use data.getUser()
and run save() on this user object. By doing so you avoid the
"two user objects" problem.
Regards
Henning
>>Did you remember to save the user?
>>TurbineSecurity.saveUser(user) (or something like
>>that) or user.save() i think should work
>>
>>-Lou
>>
>>--- Inandjo Taurel <[EMAIL PROTECTED]> wrote:
>> > hi,
>> >
>> > am having a prblem with a turbine_user password that
>> > i modify.
>> > Once i finished modifying it,forcing that password,
>> > saving it, it then comes
>> > back to the old password when i loggout.
>> > Is there something else that i should do?
>> >
>> >
>>_________________________________________________________________
>> > MSN 8 helps eliminate e-mail viruses. Get 2 months
>> > FREE*.
>> > http://join.msn.com/?page=features/virus
>> >
>> >
>> >
>>---------------------------------------------------------------------
>> > To unsubscribe, e-mail:
>> > [EMAIL PROTECTED]
>> > For additional commands, e-mail:
>> > [EMAIL PROTECTED]
>> >
>>
>>
>>__________________________________
>>Do you Yahoo!?
>>Yahoo! SiteBuilder - Free, easy-to-use web site design software
>>http://sitebuilder.yahoo.com
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
>>
>_________________________________________________________________
>MSN 8 with e-mail virus protection service: 2 months FREE*
>http://join.msn.com/?page=features/virus
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
--
Dipl.-Inf. (Univ.) Henning P. Schmiedehausen INTERMETA GmbH
[EMAIL PROTECTED] +49 9131 50 654 0 http://www.intermeta.de/
Java, perl, Solaris, Linux, xSP Consulting, Web Services
freelance consultant -- Jakarta Turbine Development -- hero for hire
"Dominate!! Dominate!! Eat your young and aggregate! I have grotty silicon!"
-- AOL CD when played backwards (User Friendly - 200-10-15)
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]