[Bps-public-commit] r20293 - RT-Authen-OpenID/html/Callbacks/OpenID/autohandler
trs at bestpractical.com
trs at bestpractical.com
Wed Jun 22 18:02:20 EDT 2011
Author: trs
Date: Wed Jun 22 18:02:19 2011
New Revision: 20293
Added:
RT-Authen-OpenID/html/Callbacks/OpenID/autohandler/Session
- copied, changed from r20241, /RT-Authen-OpenID/html/Callbacks/OpenID/autohandler/Auth
Removed:
RT-Authen-OpenID/html/Callbacks/OpenID/autohandler/Auth
Log:
Fix OpenID login to actually work on modern 3.8's and 4.0
Copied: RT-Authen-OpenID/html/Callbacks/OpenID/autohandler/Session (from r20241, /RT-Authen-OpenID/html/Callbacks/OpenID/autohandler/Auth)
==============================================================================
--- /RT-Authen-OpenID/html/Callbacks/OpenID/autohandler/Auth (original)
+++ RT-Authen-OpenID/html/Callbacks/OpenID/autohandler/Session Wed Jun 22 18:02:19 2011
@@ -54,7 +54,7 @@
}
# if the user isn't logged in and we got credentials from OpenID, load them
-if ( ( !$session{'CurrentUser'} ) && ($user) ) {
+if ( ( not $session{'CurrentUser'} or not $session{'CurrentUser'}->id ) && ($user) ) {
# set a global user so we know elsewhere we're using OpenID for auth
$session{'OpenID'} = $user;
More information about the Bps-public-commit
mailing list