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

raeburn lon-capa-cvs@mail.lon-capa.org
Thu, 20 Jan 2005 21:32:55 -0000


raeburn		Thu Jan 20 16:32:55 2005 EDT

  Modified files:              
    /loncom/interface	lonpreferences.pm 
  Log:
  Password changing was broken in inline mode because there were 2 forms named server (the other comes from lonmenu.pm, line 186 added in v 1.130), so let's call this form pserver. Could also rename all other forms something other than server.
  
  
Index: loncom/interface/lonpreferences.pm
diff -u loncom/interface/lonpreferences.pm:1.51 loncom/interface/lonpreferences.pm:1.52
--- loncom/interface/lonpreferences.pm:1.51	Wed Dec 22 06:58:32 2004
+++ loncom/interface/lonpreferences.pm	Thu Jan 20 16:32:55 2005
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Preferences
 #
-# $Id: lonpreferences.pm,v 1.51 2004/12/22 11:58:32 foxr Exp $
+# $Id: lonpreferences.pm,v 1.52 2005/01/20 21:32:55 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -581,22 +581,22 @@
         lextkey=this.document.client.elements.lkey_cpass.value;
         initkeys();
 
-        this.document.server.elements.currentpass.value
+        this.document.pserver.elements.currentpass.value
             =crypted(this.document.client.elements.currentpass.value);
 
         uextkey=this.document.client.elements.ukey_npass1.value;
         lextkey=this.document.client.elements.lkey_npass1.value;
         initkeys();
-        this.document.server.elements.newpass_1.value
+        this.document.pserver.elements.newpass_1.value
             =crypted(this.document.client.elements.newpass_1.value);
 
         uextkey=this.document.client.elements.ukey_npass2.value;
         lextkey=this.document.client.elements.lkey_npass2.value;
         initkeys();
-        this.document.server.elements.newpass_2.value
+        this.document.pserver.elements.newpass_2.value
             =crypted(this.document.client.elements.newpass_2.value);
 
-        this.document.server.submit();
+        this.document.pserver.submit();
     }
 
 </script>
@@ -607,7 +607,7 @@
      ensure that unencrypted passwords will not be sent out by a
      crappy browser -->
 
-<form name="server" action="/adm/preferences" method="post">
+<form name="pserver" action="/adm/preferences" method="post">
 <input type="hidden" name="logtoken"    value="$logtoken" />
 <input type="hidden" name="action"      value="verify_and_change_pass" />
 <input type="hidden" name="currentpass" value="" />