--- loncom/interface/lonpreferences.pm 2009/09/23 15:32:00 1.125.8.2
+++ loncom/interface/lonpreferences.pm 2009/11/19 15:41:59 1.125.8.3
@@ -1,7 +1,7 @@
# The LearningOnline Network
# Preferences
#
-# $Id: lonpreferences.pm,v 1.125.8.2 2009/09/23 15:32:00 gci Exp $
+# $Id: lonpreferences.pm,v 1.125.8.3 2009/11/19 15:41:59 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -1290,6 +1290,8 @@ sub jscript_send {
this.document.client.elements.uname.value;
this.document.pserver.elements.udom.value =
this.document.client.elements.udom.options[this.document.client.elements.udom.selectedIndex].value;
+ this.document.pserver.elements.email.value =
+ this.document.client.elements.email.value;
|;
}
$ output .= qq|
@@ -1372,6 +1374,7 @@ sub server_form {
+
|;
}
@@ -1524,14 +1527,17 @@ ENDERROR
}
} else {
# error error: run in circles, scream and shout
- $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);
if ($caller eq 'reset_by_email') {
- $r->print($message.'
');
+ if (!$result) {
+ return 1;
+ } else {
+ return $result;
+ }
} else {
+ $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);
$r->print(&Apache::loncommon::confirmwrapper($message));
}
- return 1;
}
return;
}