--- loncom/interface/createaccount.pm 2020/09/08 18:35:31 1.72.4.4 +++ loncom/interface/createaccount.pm 2017/08/03 16:22:08 1.74 @@ -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.72.4.4 2020/09/08 18:35:31 raeburn Exp $ +# $Id: createaccount.pm,v 1.74 2017/08/03 16:22:08 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -37,7 +37,6 @@ use Apache::lonacc; use Apache::lonnet; use Apache::loncommon; use Apache::lonhtmlcommon; -use Apache::lonuserutils; use Apache::lonlocal; use Apache::lonauth; use Apache::resetpw; @@ -329,7 +328,7 @@ sub handler { &print_header($r,$start_page,$courseid,$pagetitle); my $now=time; if ((grep(/^login$/,@{$cancreate})) && (!grep(/^email$/,@{$cancreate}))) { - if (open(my $jsh,"<","$include/londes.js")) { + if (open(my $jsh,"<$include/londes.js")) { while(my $line = <$jsh>) { $r->print($line); } @@ -521,12 +520,10 @@ ENDSCRIPT } sub javascript_checkpass { - my ($now,$context,$domain) = @_; + my ($now,$context) = @_; my $nopass = &mt('You must enter a password.'); my $mismatchpass = &mt('The passwords you entered did not match.')."\n". &mt('Please try again.'); - my ($numrules,$intargjs) = - &Apache::lonuserutils::passwd_validation_js('upass',$domain); &js_escape(\$nopass); &js_escape(\$mismatchpass); my $js = <<"ENDSCRIPT"; @@ -543,10 +540,6 @@ sub javascript_checkpass { return false; } if (upass == upasscheck) { - var numrules = $numrules; - if (numrules > 0) { -$intargjs - } client.elements.upasscheck$now.value=''; if (validate_email(client)) { send(one,two,'$context'); @@ -570,7 +563,8 @@ sub javascript_validmail { my %js_lt = &Apache::lonlocal::texthash ( email => 'The e-mail address you entered', 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".'