projects
/
squirrelmail.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix sqauth_read_password() for plugins running on the login_verified hook when the...
[squirrelmail.git]
/
functions
/
auth.php
diff --git
a/functions/auth.php
b/functions/auth.php
index 5304458e6120d0f36bbf3856a235cae950ce6ba7..fbc28e06ba0d98dc0327196844d8ab2f06d3605b 100644
(file)
--- a/
functions/auth.php
+++ b/
functions/auth.php
@@
-93,6
+93,9
@@
function sqauth_is_logged_in() {
* @since 1.5.1
*/
function sqauth_read_password() {
+ global $currentHookName;
+ if ($currentHookName == 'login_verified') global $key;
+
sqgetGlobalVar('key', $key, SQ_COOKIE);
sqgetGlobalVar('onetimepad', $onetimepad,SQ_SESSION);