--- loncom/interface/lonpreferences.pm 2019/04/24 21:15:48 1.231
+++ loncom/interface/lonpreferences.pm 2019/04/30 12:56:23 1.232
@@ -1,7 +1,7 @@
# The LearningOnline Network
# Preferences
#
-# $Id: lonpreferences.pm,v 1.231 2019/04/24 21:15:48 raeburn Exp $
+# $Id: lonpreferences.pm,v 1.232 2019/04/30 12:56:23 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -1752,8 +1752,14 @@ ENDERROR
return $result;
}
} else {
+ my $feedback;
+ if ($result eq 'prioruse') {
+ $feedback = &mt('Please enter a password that you have not used recently.');
+ } else {
+ $feedback = &mt('Please make sure your old password was entered correctly.');
+ }
$message = &Apache::lonhtmlcommon::confirm_success(
- &mt("The password for user [_1] was not changed.",''.$user.'').' '.&mt('Please make sure your old password was entered correctly.'),1);
+ &mt("The password for user [_1] was not changed.",''.$user.'').' '.$feedback,1);
$message=&Apache::loncommon::confirmwrapper($message);
&print_main_menu($r, $message);
if (ref($ended)) {