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

raeburn raeburn@source.lon-capa.org
Mon, 16 Aug 2010 14:23:50 -0000


raeburn		Mon Aug 16 14:23:50 2010 EDT

  Modified files:              
    /loncom/interface	createaccount.pm 
  Log:
  - pass %got_rules to &call_rulecheck() by reference.
  
  
Index: loncom/interface/createaccount.pm
diff -u loncom/interface/createaccount.pm:1.39 loncom/interface/createaccount.pm:1.40
--- loncom/interface/createaccount.pm:1.39	Mon Mar 22 20:11:22 2010
+++ loncom/interface/createaccount.pm	Mon Aug 16 14:23:50 2010
@@ -3,7 +3,7 @@
 # institutional log-in ID (institutional authentication required - localauth
 #  or kerberos) or an e-mail address.
 #
-# $Id: createaccount.pm,v 1.39 2010/03/22 20:11:22 droeschl Exp $
+# $Id: createaccount.pm,v 1.40 2010/08/16 14:23:50 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -545,7 +545,7 @@
                 if ($uhome eq 'no_host') {
                     my (%rulematch,%inst_results,%curr_rules,%got_rules,%alerts);
                     &call_rulecheck($useremail,$domain,\%alerts,\%rulematch,
-                                    \%inst_results,\%curr_rules,%got_rules,'username');
+                                    \%inst_results,\%curr_rules,\%got_rules,'username');
                     if (ref($alerts{'username'}) eq 'HASH') {
                         if (ref($alerts{'username'}{$domain}) eq 'HASH') {
                             if ($alerts{'username'}{$domain}{$useremail}) {
@@ -916,7 +916,7 @@
     my (%rulematch,%inst_results,$checkfail,$rowcount,$editable,$output,$msg,
         %alerts,%curr_rules,%got_rules);
     &call_rulecheck($username,$domain,\%alerts,\%rulematch,
-                    \%inst_results,\%curr_rules,%got_rules,'username');
+                    \%inst_results,\%curr_rules,\%got_rules,'username');
     if (ref($alerts{'username'}) eq 'HASH') {
         if (ref($alerts{'username'}{$domain}) eq 'HASH') {
             if ($alerts{'username'}{$domain}{$username}) {
@@ -1063,7 +1063,7 @@
         # Call modifyuser
         my (%rulematch,%inst_results,%curr_rules,%got_rules,%alerts,%info);
         &call_rulecheck($username,$domain,\%alerts,\%rulematch,
-                        \%inst_results,\%curr_rules,%got_rules);
+                        \%inst_results,\%curr_rules,\%got_rules);
         my @userinfo = ('firstname','middlename','lastname','generation',
                         'permanentemail','id');
         my %canmodify =