[LON-CAPA-cvs] cvs: loncom /interface createaccount.pm

raeburn raeburn at source.lon-capa.org
Fri Jan 9 10:41:49 EST 2015


raeburn		Fri Jan  9 15:41:49 2015 EDT

  Modified files:              
    /loncom/interface	createaccount.pm 
  Log:
  - When an institutionally authenticated user creates a new account on a load
    balancer server, detection of load balancer status should be based on 
    information in domain's configuration.db, and only use the legacy check for 
    lonBalancer 1 in Apache config files, if the web GUI has yet to be used.
  
  
Index: loncom/interface/createaccount.pm
diff -u loncom/interface/createaccount.pm:1.68 loncom/interface/createaccount.pm:1.69
--- loncom/interface/createaccount.pm:1.68	Thu Jun 19 23:36:54 2014
+++ loncom/interface/createaccount.pm	Fri Jan  9 15:41:49 2015
@@ -4,7 +4,7 @@
 # kerberos, or SSO) or an e-mail address. Requests to use an e-mail address as
 # username may be processed automatically, or may be queued for approval.
 #
-# $Id: createaccount.pm,v 1.68 2014/06/19 23:36:54 raeburn Exp $
+# $Id: createaccount.pm,v 1.69 2015/01/09 15:41:49 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -856,8 +856,8 @@
 
 sub start_session {
     my ($r,$username,$domain,$uhome,$courseid,$token) = @_;
-
-    if ($r->dir_config('lonBalancer') eq 'yes') {
+    my ($is_balancer) = &Apache::lonnet::check_loadbalancing($username,$domain);
+    if ($is_balancer) {
         Apache::lonauth::success($r, $username, $domain, $uhome,
             'noredirect', undef, {});
 
@@ -871,7 +871,6 @@
             ($courseid ? "/adm/selfenroll?courseid=$courseid" : '/adm/roles'),
             undef, {}); 
     }
-
     return;
 }
 




More information about the LON-CAPA-cvs mailing list