--- loncom/interface/lonpreferences.pm 2009/03/21 04:41:50 1.125.2.3 +++ loncom/interface/lonpreferences.pm 2009/10/09 13:09:01 1.125.2.4 @@ -1,7 +1,7 @@ # The LearningOnline Network # Preferences # -# $Id: lonpreferences.pm,v 1.125.2.3 2009/03/21 04:41:50 raeburn Exp $ +# $Id: lonpreferences.pm,v 1.125.2.4 2009/10/09 13:09:01 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -1248,6 +1248,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| @@ -1332,6 +1334,7 @@ sub server_form { + |; } @@ -1478,9 +1481,16 @@ ENDERROR $r->print("

".&mt('The password for [_1] was successfully changed',$user)."

"); } else { # error error: run in circles, scream and shout - $r->print("

".&mt("The password for [_1] was not changed",$user)."

". - &mt('Please make sure your old password was entered correctly.')); - return 1; + if ($caller eq 'reset_by_email') { + if (!$result) { + return 1; + } else { + return $result; + } + } else { + $r->print("

".&mt("The password for [_1] was not changed",$user)."

". + &mt('Please make sure your old password was entered correctly.')); + } } return; }