[LON-CAPA-cvs] cvs: loncom(version_2_11_X) /auth lonacc.pm

raeburn raeburn at source.lon-capa.org
Tue Aug 16 16:36:45 EDT 2016


raeburn		Tue Aug 16 20:36:45 2016 EDT

  Modified files:              (Branch: version_2_11_X)
    /loncom/auth	lonacc.pm 
  Log:
  - For 2.11
    - Backport 1.164 
  
  
Index: loncom/auth/lonacc.pm
diff -u loncom/auth/lonacc.pm:1.159.2.3 loncom/auth/lonacc.pm:1.159.2.4
--- loncom/auth/lonacc.pm:1.159.2.3	Sun Aug  7 20:49:37 2016
+++ loncom/auth/lonacc.pm	Tue Aug 16 20:36:45 2016
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Cookie Based Access Handler
 #
-# $Id: lonacc.pm,v 1.159.2.3 2016/08/07 20:49:37 raeburn Exp $
+# $Id: lonacc.pm,v 1.159.2.4 2016/08/16 20:36:45 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -352,14 +352,7 @@
 	} else {
 	    # need to login them in, so generate the need data that
 	    # migrate expects to do login
-	    my $ip;
-	    my $c = $r->connection;
-	    eval {
-	        $ip = $c->remote_ip();
-	    };
-	    if ($@) {
-	        $ip = $c->client_ip();
-	    }
+            my $ip = $r->get_remote_host();
 	    my %info=('ip'        => $ip,
 		      'domain'    => $domain,
 		      'username'  => $user,




More information about the LON-CAPA-cvs mailing list