6.0.0-beta1
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
9/24/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#3895] Auth::get... in hooks
*
Your Email Address
*
Spam protection
Enter the letters below:
.. ,.___.. ..___ | \./ _/ |\/|[__ \__| | ./__.| ||
Comment
> If I read the code right, they are called when the registry function > loadPrefs() is used. It gets the preferences via $prefs->retrieve(). > This retrieve() function uses the private method _callHooks() from > the Prefs class. > > > > Now there is one place in imp/login.php where loadPrefs() is called > when the Auth object is cleared. This is when a user logs out (see > imp/login line 92 and 93). I don't know the exact reason why it is > called, but anyway at this point the Auth::get...() methods in th > hook doesn't work. > > > > It is also called via Auth::clearAuth() in which again the auth info > from the Auth object is already removed before the loadPrefs call. > Auth::clearAuth() is also called in imp/login.php when a user logs > out. Therefore the hooks are called twice on a logout and I get also > the errors twice. > > > > I didn't figure out what happens when a user logs in (authentication > is done by IMP), but there it also seams to be the case that the > hooks are called to early or are not recalled again. > > > >
Attachment
Watch this ticket
N
ew Ticket
M
y Tickets
S
earch
Q
uery Builder
R
eports
Saved Queries
Open Bugs
Bugs waiting for Feedback
Open Bugs in Releases
Open Enhancements
Enhancements waiting for Feedback
Bugs with Patches
Enhancements with Patches
Release Showstoppers
Stalled Tickets
New Tickets
Horde 5 Showstoppers