--- loncom/interface/createaccount.pm 2012/02/08 19:08:41 1.40.2.5.2.2
+++ loncom/interface/createaccount.pm 2010/12/01 21:38:29 1.43
@@ -3,7 +3,7 @@
# institutional log-in ID (institutional authentication required - localauth
# or kerberos) or an e-mail address.
#
-# $Id: createaccount.pm,v 1.40.2.5.2.2 2012/02/08 19:08:41 raeburn Exp $
+# $Id: createaccount.pm,v 1.43 2010/12/01 21:38:29 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -39,7 +39,7 @@ use Apache::lonhtmlcommon;
use Apache::lonlocal;
use Apache::lonauth;
use Apache::resetpw;
-use Captcha::reCAPTCHA;
+use Authen::Captcha;
use DynaLoader; # for Crypt::DES version
use Crypt::DES;
use LONCAPA qw(:DEFAULT :match);
@@ -128,8 +128,7 @@ sub handler {
return OK;
} else {
$start_page =
- &Apache::loncommon::start_page($title,$js,
- {'no_inline_link' => 1,});
+ &Apache::loncommon::start_page($title,$js);
&print_header($r,$start_page,$courseid);
$r->print($output);
&print_footer($r);
@@ -137,8 +136,8 @@ sub handler {
}
}
$start_page =
- &Apache::loncommon::start_page($title,$js,
- {'no_inline_link' => 1,});
+ &Apache::loncommon::start_page($title,$js);
+
my %domconfig =
&Apache::lonnet::get_dom('configuration',['usercreation'],$domain);
my ($cancreate,$statustocreate) = &get_creation_controls($domain,$domconfig{'usercreation'});
@@ -146,7 +145,7 @@ sub handler {
&print_header($r,$start_page,$courseid);
my $output = '
'.&mt('Account creation unavailable').'
'.
''.
- &mt('Creation of a new user account using an e-mail address or an institutional log-in ID as username is not permitted for [_1].',$domdesc).'
';
+ &mt('Creation of a new user account using an e-mail address or an institutional log-in ID as username is not permitted at this institution ([_1]).',$domdesc).'
';
$r->print($output);
&print_footer($r);
return OK;
@@ -245,15 +244,6 @@ sub handler {
return OK;
}
-sub get_custom_name {
- my ($domain) = @_;
- if ($domain eq 'relate') {
- return 'Learn-Physics';
- } else {
- return lc($domain);
- }
-}
-
sub print_header {
my ($r,$start_page,$courseid) = @_;
$r->print($start_page);
@@ -294,7 +284,7 @@ sub selfenroll_crumbs {
}
my $last_crumb;
if ($desc ne '') {
- $last_crumb = &mt('Self-enroll in [_1]',"$desc");
+ $last_crumb = &mt('Self-enroll in [_1]',''.$desc.'');
} else {
$last_crumb = &mt('Self-enroll');
}
@@ -382,13 +372,6 @@ function validate_email() {
if (validmail(field) == false) {
alert("$lt{'email'}: "+field.value+" $lt{'notv'}.");
return false;
- } else {
- var emailaddr = field.value;
- var lcemail = emailaddr.toLowerCase();
- if (emailaddr != lcemail) {
- field.value = lcemail;
- alert("Learn-Physics usernames are all lower case.\\nAccordingly your username will be "+lcemail+" once activated.");
- }
}
return true;
}
@@ -417,21 +400,17 @@ sub print_username_form {
}
}
if (grep(/^email$/,@{$cancreate})) {
- $output .= '
'.&mt('Create account with an e-mail address as your username').'
'.
- &mt('You are about to sign-up for a Learn Physics account so you can take the pre-requisite test for enrollment in the online course.').' '.
- &mt('Your performance on the test will help both you and us gauge your readiness to take the course.').' '.
- &mt('Although the pre-test exam will be the basis for admitting people into the course, we can only accommodate a limited number of students.').' '.
- &mt('We will e-mail you with instructions on how to access the course by the end of February, if we are able to accommodate you.').' ';
- my $captchaform = &create_recaptcha();
+ $output .= '
'.&mt('Create account with an e-mail address as your username').'
';
+ my $captchaform = &create_captcha();
if ($captchaform) {
- my $submit_text = &mt('Sign-up');
+ my $submit_text = &mt('Request LON-CAPA account');
my $emailform = '';
if (grep(/^login$/,@{$cancreate})) {
- $output .= &mt('Provide your e-mail address to sign up for a Learn Physics account if you do not have a log-in ID at your institution.',' ').'
';
+ $output .= &mt('Provide your e-mail address to request a LON-CAPA account,[_1] if you do not have a log-in ID at your institution.',' ').'