[LON-CAPA-cvs] cvs: loncom /interface lonpreferences.pm

raeburn raeburn at source.lon-capa.org
Tue Apr 30 08:56:24 EDT 2019


raeburn		Tue Apr 30 12:56:24 2019 EDT

  Modified files:              
    /loncom/interface	lonpreferences.pm 
  Log:
  - Appropriate feedback if new password entered by user was disallowed by
    rules on reuse of passwords used previously by the same user.
  
  
Index: loncom/interface/lonpreferences.pm
diff -u loncom/interface/lonpreferences.pm:1.231 loncom/interface/lonpreferences.pm:1.232
--- loncom/interface/lonpreferences.pm:1.231	Wed Apr 24 21:15:48 2019
+++ loncom/interface/lonpreferences.pm	Tue Apr 30 12:56:23 2019
@@ -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 @@
                 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.",'<i>'.$user.'</i>').' '.&mt('Please make sure your old password was entered correctly.'),1);
+                &mt("The password for user [_1] was not changed.",'<i>'.$user.'</i>').' '.$feedback,1);
             $message=&Apache::loncommon::confirmwrapper($message);
             &print_main_menu($r, $message);
             if (ref($ended)) {




More information about the LON-CAPA-cvs mailing list