[mapguide-commits] r4822 - trunk/Tools/Maestro/Maestro/LoginForm

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Tue May 4 00:51:53 EDT 2010


Author: jng
Date: 2010-05-04 00:51:52 -0400 (Tue, 04 May 2010)
New Revision: 4822

Modified:
   trunk/Tools/Maestro/Maestro/LoginForm/FormLogin.cs
   trunk/Tools/Maestro/Maestro/LoginForm/FormLogin.resx
Log:
Fix #1339: Allow empty passwords in login dialog (required for Anonymous login)

Modified: trunk/Tools/Maestro/Maestro/LoginForm/FormLogin.cs
===================================================================
--- trunk/Tools/Maestro/Maestro/LoginForm/FormLogin.cs	2010-04-30 23:00:23 UTC (rev 4821)
+++ trunk/Tools/Maestro/Maestro/LoginForm/FormLogin.cs	2010-05-04 04:51:52 UTC (rev 4822)
@@ -428,8 +428,11 @@
 
         private void txtPassword_TextChanged(object sender, EventArgs e)
         {
-            btnOK.Enabled = txtPassword.Text.Trim().Length > 0 && cmbServerUrl.Text.Length > 0 && txtUsername.Text.Length > 0;
+            btnOK.Enabled = cmbServerUrl.Text.Length > 0 && txtUsername.Text.Length > 0;
         }
 
+        public string Username { get { return txtUsername.Text; } }
+
+        public string Password { get { return txtPassword.Text; } }
 	}
 }

Modified: trunk/Tools/Maestro/Maestro/LoginForm/FormLogin.resx
===================================================================
--- trunk/Tools/Maestro/Maestro/LoginForm/FormLogin.resx	2010-04-30 23:00:23 UTC (rev 4821)
+++ trunk/Tools/Maestro/Maestro/LoginForm/FormLogin.resx	2010-05-04 04:51:52 UTC (rev 4822)
@@ -143,6 +143,9 @@
   <data name="&gt;&gt;label1.ZOrder" xml:space="preserve">
     <value>13</value>
   </data>
+  <metadata name="toolTip.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+    <value>17, 17</value>
+  </metadata>
   <data name="cmbServerUrl.Location" type="System.Drawing.Point, System.Drawing">
     <value>96, 16</value>
   </data>
@@ -155,9 +158,6 @@
   <data name="cmbServerUrl.Text" xml:space="preserve">
     <value>http://localhost/mapguide/mapagent/mapagent.fcgi</value>
   </data>
-  <metadata name="toolTip.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
-    <value>17, 17</value>
-  </metadata>
   <data name="cmbServerUrl.ToolTip" xml:space="preserve">
     <value>Enter the full URL of the MapAgent service here</value>
   </data>
@@ -456,6 +456,9 @@
   <data name="&gt;&gt;chkSavePassword.ZOrder" xml:space="preserve">
     <value>2</value>
   </data>
+  <metadata name="toolTip.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+    <value>17, 17</value>
+  </metadata>
   <data name="cmbLanguage.Location" type="System.Drawing.Point, System.Drawing">
     <value>96, 144</value>
   </data>



More information about the mapguide-commits mailing list