[daisy] Releasing the UserRegistrar.ROLE in the PasswordReminder

Bruno Dumon bruno at outerthought.org
Thu Jun 14 03:26:44 CDT 2007


On Wed, 2007-06-13 at 16:15 -0400, Greg Sieranski wrote:
> We needed to style the login and password reminder forms so instead of 
> overwriting the default daisy skins we created an extension and 
> duplicated the PasswordReminderApple in the flow code. We came across a 
> very weird occurrence that I am hoping you can shed some light on. In 
> our flow code after we call the sendPasswordReminder() we call a service 
> manager release on the UserRegistrar.ROLE. This is the only difference 
> between our flow code and the Apple. Doing this causes daisy to not 
> immediately update the user w/ the new password. It appears to 
> eventually update over some random period of time.  If we remove the 
> service manager release part from the flow code then the update happens 
> immediately.
> 
> Does anyone know why releasing the UserRegistrar.ROLE would cause daisy 
> to not recognize the new password right away?

This sounds very strange, I don't see how these two could be related?
The user update is completed before you release the user registrar.

How do you determine when the user is updated anyway? Maybe you are
referring to when you receive the password reminder email? In that case,
mails can indeed arrive with a small delay, as they are first queued in
a database table, and in case of a failing SMTP server they could arrive
a whole lot later. For details see:
http://cocoondev.org/daisydocs-2_0/admin/15-cd.html

-- 
Bruno Dumon                             http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
bruno at outerthought.org                          bruno at apache.org



More information about the daisy mailing list