]> source.dussan.org Git - vaadin-framework.git/commitdiff
#3976 use method POST for login form
authorHenri Sara <henri.sara@itmill.com>
Tue, 19 Jan 2010 07:16:51 +0000 (07:16 +0000)
committerHenri Sara <henri.sara@itmill.com>
Tue, 19 Jan 2010 07:16:51 +0000 (07:16 +0000)
svn changeset:10798/svn branch:6.2

src/com/vaadin/ui/LoginForm.java

index 9d1de60505e9d49e35bef63e7b1c01afc1dc6a19..a275a36788fecdce444e474a579197f9b0bb5b7d 100644 (file)
@@ -32,7 +32,7 @@ import com.vaadin.terminal.gwt.client.ApplicationConnection;
  * default component tries to guess the right place for theme css.
  * <p>
  * Note, this is a new Ajax terminal specific component and is likely to change.
- * 
+ *
  * @since 5.3
  */
 public class LoginForm extends CustomComponent {
@@ -44,7 +44,7 @@ public class LoginForm extends CustomComponent {
     private ApplicationResource loginPage = new ApplicationResource() {
 
         /**
-         * 
+         *
          */
         private static final long serialVersionUID = 1L;
 
@@ -77,7 +77,7 @@ public class LoginForm extends CustomComponent {
     private ParameterHandler paramHandler = new ParameterHandler() {
 
         /**
-         * 
+         *
          */
         private static final long serialVersionUID = 1L;
 
@@ -101,7 +101,7 @@ public class LoginForm extends CustomComponent {
 
     private URIHandler uriHandler = new URIHandler() {
         /**
-         * 
+         *
          */
         private static final long serialVersionUID = 1L;
         private final String responce = "<html><body>Login form handeled."
@@ -137,7 +137,7 @@ public class LoginForm extends CustomComponent {
      * Returns byte array containing login page html. If you need to override
      * the login html, use the default html as basis. Login page sets its target
      * with javascript.
-     * 
+     *
      * @return byte array containing login page html
      */
     protected byte[] getLoginHTML() {
@@ -175,7 +175,7 @@ public class LoginForm extends CustomComponent {
                 + "<div class='v-app v-app-loginpage' style=\"background:transparent;\">"
                 + "<iframe name='logintarget' style='width:0;height:0;"
                 + "border:0;margin:0;padding:0;'></iframe>"
-                + "<form id='loginf' target='logintarget' onkeypress=\"submitOnEnter(event)\">"
+                + "<form id='loginf' target='logintarget' onkeypress=\"submitOnEnter(event)\" method=\"post\">"
                 + "<div>Username</div><div >"
                 + "<input class='v-textfield' style='display:block;' type='text' name='username'></div>"
                 + "<div>Password</div>"
@@ -212,7 +212,7 @@ public class LoginForm extends CustomComponent {
     public class LoginEvent extends Event {
 
         /**
-         * 
+         *
          */
         private static final long serialVersionUID = 1L;
         private Map<String, String> params;
@@ -224,7 +224,7 @@ public class LoginForm extends CustomComponent {
 
         /**
          * Access method to form values by field names.
-         * 
+         *
          * @param name
          * @return value in given field
          */
@@ -244,7 +244,7 @@ public class LoginForm extends CustomComponent {
     public interface LoginListener extends Serializable {
         /**
          * This method is fired on each login form post.
-         * 
+         *
          * @param event
          */
         public void onLogin(LoginForm.LoginEvent event);
@@ -268,7 +268,7 @@ public class LoginForm extends CustomComponent {
 
     /**
      * Adds LoginListener to handle login logic
-     * 
+     *
      * @param listener
      */
     public void addListener(LoginListener listener) {
@@ -277,7 +277,7 @@ public class LoginForm extends CustomComponent {
 
     /**
      * Removes LoginListener
-     * 
+     *
      * @param listener
      */
     public void removeListener(LoginListener listener) {