--- loncom/interface/lonpreferences.pm 2012/08/16 17:02:55 1.198 +++ loncom/interface/lonpreferences.pm 2012/10/04 13:41:10 1.199 @@ -1,7 +1,7 @@ # The LearningOnline Network # Preferences # -# $Id: lonpreferences.pm,v 1.198 2012/08/16 17:02:55 raeburn Exp $ +# $Id: lonpreferences.pm,v 1.199 2012/10/04 13:41:10 bisitz Exp $ # # Copyright Michigan State University Board of Trustees # @@ -1346,8 +1346,11 @@ sub passwordchanger { } elsif ($caller eq 'reset_by_email') { my %data = &Apache::lonnet::tmpget($mailtoken); if (keys(%data) == 0) { - $r->print(&mt('Sorry, the URL you provided to complete the reset of your password was invalid. Either the token included in the URL has been deleted or the URL you provided was invalid. Please submit a [_1]new request[_2] for a password reset, and follow the link to the new URL included in the e-mail that will be sent to you, to allow you to enter a new password.' - ,'','') + $r->print( + '
' + .&mt('Sorry, the URL you provided to complete the reset of your password was invalid. Either the token included in the URL has been deleted or the URL you provided was invalid. Please submit a [_1]new request[_2] for a password reset, and follow the link to the new URL included in the e-mail that will be sent to you, to allow you to enter a new password.' + ,'','') + .'
' ); return; } @@ -1357,18 +1360,32 @@ sub passwordchanger { $domain = $data{'domain'}; $currentpass = $data{'temppasswd'}; } else { - $r->print(&mt('Sorry, the token generated when you requested a password reset has expired.').'' + .&mt('Sorry, the token generated when you requested' + .' a password reset has expired.') + .'
' + ); return; } } else { - $r->print(&mt('Sorry, the URL generated when you requested reset of your password contained incomplete information.').'' + .&mt('Sorry, the URL generated when you requested reset of' + .' your password contained incomplete information.') + .'
' + ); return; } if (&Apache::lonnet::domain($domain) eq '') { $domain = $r->dir_config('lonDefDomain'); } } else { - $r->print(&mt('Page requested in unexpected context').'' + .&mt('Page requested in unexpected context') + .'
' + ); return; } my $currentauth=&Apache::lonnet::queryauthenticate($user,$domain); @@ -1640,14 +1657,14 @@ ENDERROR } if ($newpass1 ne $newpass2) { &passwordchanger($r, - ''. + ''. &mt('The new passwords you entered do not match.').' '. &mt('Please try again.').'',$caller,$mailtoken); return 1; } if (length($newpass1) < 7) { &passwordchanger($r, - ''. + ''. &mt('Passwords must be a minimum of 7 characters long.').' '. &mt('Please try again.').'',$caller,$mailtoken); return 1; @@ -1660,7 +1677,7 @@ ENDERROR } if ($badpassword) { # I can't figure out how to enter bad characters on my browser. - my $errormessage =''. + my $errormessage =''. &mt('The password you entered contained illegal characters.').'