--- loncom/interface/resetpw.pm 2010/12/06 02:40:45 1.22.2.5
+++ loncom/interface/resetpw.pm 2012/02/14 15:48:55 1.23.2.2.2.3
@@ -1,7 +1,7 @@
# The LearningOnline Network
# Allow access to password changing via a token sent to user's e-mail.
#
-# $Id: resetpw.pm,v 1.22.2.5 2010/12/06 02:40:45 raeburn Exp $
+# $Id: resetpw.pm,v 1.23.2.2.2.3 2012/02/14 15:48:55 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -107,9 +107,9 @@ sub handler {
text => 'Result'});
}
}
- my $args = {no_inline_link => 1,
- bread_crumbs => $brcrum,
- bread_crumbs_component => $bread_crumbs_component};
+ my $args = {bread_crumbs => $brcrum,
+ bread_crumbs_component => $bread_crumbs_component,
+ 'no_inline_link' => 1};
$r->print(&Apache::loncommon::start_page('Reset password','',$args));
$r->print('
'.&mt('Reset forgotten LON-CAPA password').'
');
my $output;
@@ -195,8 +195,8 @@ sub handler {
sub get_uname {
my ($defdom,$uname,$useremail) = @_;
my %lt = &Apache::lonlocal::texthash(
- unam => 'LON-CAPA username',
- udom => 'LON-CAPA domain',
+ unam => 'username',
+ udom => 'domain',
uemail => 'E-mail address in LON-CAPA',
proc => 'Proceed');
my %value;
@@ -204,14 +204,17 @@ sub get_uname {
$value{'uname'} = $uname;
$value{'useremail'} = $useremail;
}
- my $inventory = uc($defdom);
+ if ($env{'form.referrer'} eq 'createaccount') {
+ $value{'uname'} = $uname;
+ $value{'useremail'} = $useremail;
+ }
my $msg = '
'.&mt('To be able to reset a forgotten password:')
- .'- '.&mt('An e-mail address must have previously been associated with your LON-CAPA username.').'
'
- .'- '.&mt('You must be able to access e-mail sent to the e-mail address associated with your WebCenter account.').'
'
- .&mt('In most cases the [_1] WebCenter username is the same as your e-mail address, in which case you will enter the same information twice.',$inventory).'
';
+ .'- '.&mt('An e-mail address must have previously been associated with your [_1] username.','Mechanics Online').'
'
+ .'- '.&mt('You must be able to access e-mail sent to the e-mail address associated with your [_1] account.','Mechanics Online').'
'
+ .&mt('In most cases the [_1] username is the same as your e-mail address, in which case you will enter the same information twice.','Mechanics Online').'
';
$msg .= '