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

raeburn raeburn at source.lon-capa.org
Fri May 30 12:46:03 EDT 2014


raeburn		Fri May 30 16:46:03 2014 EDT

  Modified files:              
    /loncom/interface	createaccount.pm 
  Log:
  - If "Self-creation with e-mail as username" settings have yet to be set
    for a domain (2.11 feature), but self-creation enabled for e-mail
    address as username (available pre-2.11), optional user informational 
    fields: firstname and lastname in web form.
  
  
Index: loncom/interface/createaccount.pm
diff -u loncom/interface/createaccount.pm:1.66 loncom/interface/createaccount.pm:1.67
--- loncom/interface/createaccount.pm:1.66	Mon May  5 22:01:15 2014
+++ loncom/interface/createaccount.pm	Fri May 30 16:46:03 2014
@@ -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.66 2014/05/05 22:01:15 raeburn Exp $
+# $Id: createaccount.pm,v 1.67 2014/05/30 16:46:03 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1003,7 +1003,12 @@
             if (ref($usercreation->{'cancreate'}{'emailusername'}) eq 'HASH') {
                 $emailusername = $usercreation->{'cancreate'}{'emailusername'};
             } else {
-                $emailusername =  {'lastname' => '1', 'firstname' => 1, };
+                $emailusername = {
+                                    default =>  {
+                                                   'lastname' => '1',
+                                                   'firstname' => 1,
+                                                },
+                                 };
             }
         }
     }




More information about the LON-CAPA-cvs mailing list