[Bps-public-commit] r16656 - RT-Authen-ExternalAuth/trunk/html/Callbacks/ExternalAuth/autohandler

zordrak at bestpractical.com zordrak at bestpractical.com
Tue Nov 4 08:01:27 EST 2008


Author: zordrak
Date: Tue Nov  4 08:01:26 2008
New Revision: 16656

Modified:
   RT-Authen-ExternalAuth/trunk/html/Callbacks/ExternalAuth/autohandler/Auth

Log:
Update to Auth callback :: Change method for looking up ::AutoCreate

Modified: RT-Authen-ExternalAuth/trunk/html/Callbacks/ExternalAuth/autohandler/Auth
==============================================================================
--- RT-Authen-ExternalAuth/trunk/html/Callbacks/ExternalAuth/autohandler/Auth	(original)
+++ RT-Authen-ExternalAuth/trunk/html/Callbacks/ExternalAuth/autohandler/Auth	Tue Nov  4 08:01:26 2008
@@ -52,11 +52,11 @@
             if ($password_validated) {
                     ### If there were a standard param to check for whether or not we
                     ### should autocreate authenticated users, we'd check it here.
-                    my ($val, $msg) = 
-                      $UserObj->Create(%{ref($RT::AutoCreate) ? $RT::AutoCreate : {}},
-                                       Name   => $user,
-                                       Gecos  => $user,
-                                      );
+                    my ($val, $msg) = $UserObj->Create(
+                      %{ ref RT->Config->Get('AutoCreate') ? RT->Config->Get('AutoCreate') : {} },
+                      Name   => $user,
+                      Gecos  => $user,
+                    );
                     unless ($val) {
                         $RT::Logger->error( "Couldn't create user $user: $msg" );
                         return;



More information about the Bps-public-commit mailing list