Announcement Announcement Module
Collapse
No announcement yet.
[form-login]send data with GET methode Page Title Module
Move Remove Collapse
This topic is closed
X
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • [form-login]send data with GET methode

    Hi all,
    i'm using form login as:
    Code:
    <form-login login-page='/login.iface' default-target-url='/index.iface'
                        always-use-default-target='true'/>
    And in my login form i'm using GET methode to data to j_spring_security_check
    Code:
    <form action="/VIPNETWEB/j_spring_security_check" method="GET" name="f">
    <table>
    <tr>
    <td>User:</td>
    <td><input name="j_username" type="text" value="" /></td>
    </tr>
    <tr>
    <td>Password:</td>
    <td><input name="j_password" type="password" /></td>
    </tr>
    <tr><td colspan="2">
    <input name="submit" type="submit" /></td>
    </tr>
    <tr>
    <td colspan="2">
    <input name="reset" type="reset" /></td>
    </tr>
    </table>
    When i clic the submit bouton no authentication take place.
    But when i use POST methode instead of GET authentication takes place.

    My probleme is that i need to use GET methode so how could i configure my form-login tag to accept GET methode.
    best regards.

  • #2
    Using GET is bad practice as the parameters are appended to the URL, so the system doesn't permit this by default. There is a parameter on UsernamePasswordAuthenticationFilter which you can set to disable this behaviour, but it isn't recommended.

    Comment


    • #3
      Thank you for your reply.
      can you send me sample that do that.
      regards.

      Comment

      Working...
      X