Diff for /loncom/interface/createaccount.pm between versions 1.72.4.5 and 1.79

version 1.72.4.5, 2020/09/09 02:12:01 version 1.79, 2019/08/25 02:42:56
Line 570  sub javascript_validmail { Line 570  sub javascript_validmail {
     my %js_lt = &Apache::lonlocal::texthash (      my %js_lt = &Apache::lonlocal::texthash (
                email => 'The e-mail address you entered',                 email => 'The e-mail address you entered',
                notv  => 'is not a valid e-mail address',                 notv  => 'is not a valid e-mail address',
                avae  => 'A valid e-mail address is not formed when the value you entered is combined with the required domain',                 avae  => 'A valid e-mail address is not formed when the value you entered',
                  isco  => 'is combined with the required domain',
     );      );
     my $output =  "\n".'<script type="text/javascript">'."\n".      my $output =  "\n".'<script type="text/javascript">'."\n".
                   '// <![CDATA['."\n".                    '// <![CDATA['."\n".
Line 582  function validate_email(client) { Line 583  function validate_email(client) {
     var condition = '$condition';      var condition = '$condition';
     if (validmail(field,condition) == false) {      if (validmail(field,condition) == false) {
         if ((condition != undefined) && (condition != '')) {          if ((condition != undefined) && (condition != '')) {
             alert("$js_lt{'avae'}: "+condition);              alert("$js_lt{'avae'}: "+field.value+" $js_lt{'isco'}: "+condition);
         } else {          } else {
             alert("$js_lt{'email'}: "+field.value+" $js_lt{'notv'}.");              alert("$js_lt{'email'}: "+field.value+" $js_lt{'notv'}.");
         }          }
Line 1405  sub create_account { Line 1406  sub create_account {
             unless (($inststatus eq 'default') || ($inststatus eq '')) {              unless (($inststatus eq 'default') || ($inststatus eq '')) {
                 &Apache::lonnet::put('environment',{inststatus => $inststatus},$domain,$username);                  &Apache::lonnet::put('environment',{inststatus => $inststatus},$domain,$username);
             }              }
             $output .= '<br />'.&mt('Home Server').": $uhome ".              $output .= '<br />'.&mt('Home server: [_1]',$uhome).' '.
                        &Apache::lonnet::hostname($uhome).'<br /><br />';                         &Apache::lonnet::hostname($uhome).'<br /><br />';
             return ('ok',$output,$uhome);              return ('ok',$output,$uhome);
         } else {          } else {

Removed from v.1.72.4.5  
changed lines
  Added in v.1.79


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>