Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

FOP2 Community Forum

  1. Home
  2. Feedback
  3. Autologin via POST

Autologin via POST

Scheduled Pinned Locked Moved Feedback
6 Posts 2 Posters 185 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T
    T
    ttolst
    wrote on last edited by
    #1

    Hi.

    I would very much like to be able to log users into FOP2 automatically. Now i have tried and successfully used the method involving GET parameters, but i would really like to hide the username and password from the URL and do the login through a form POST instead. I did try submitting the login credentials through a post, with no luck.

    1 Reply Last reply
    0
    • N
      N
      nicolas
      wrote on last edited by
      #2

      Thanks for the feedback.

      I will investigate if possible, and if its possible will include it on the next release.

      1 Reply Last reply
      0
      • N
        N
        nicolas
        wrote on last edited by
        #3

        Unfortunately it will not be possible to use POST for auto login, but I can implement the usage of window.name to pass information between a login form and the fop2 app itself, so you will not be seeing sensitive information on the url, but you will also need to set the window.name accordingly instead of using a simple post form.

        1 Reply Last reply
        0
        • T
          T
          ttolst
          wrote on last edited by
          #4

          Hi.

          Any method that will remove the login credentials from the URL will be super 🙂

          An alternative solution could be to make it possible to do the password check manually in the perl module, that way i could use the password field as a session hash and handle the session setup and expiry in my backend.

          1 Reply Last reply
          0
          • N
            N
            nicolas
            wrote on last edited by
            #5

            Hi,

            Your suggestion seems utterly complicated to implement. I have tested the window.name and works perfectly well, I have already implemented it on 'trunk'... you will see the feature in the next release. The login form should set the window.name on submit, here is a silly sample:

            <html xmlns="http://www.w3.org/1999/xhtml">
            <head>
            <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
            <title>test</title>
            <script>
            function setLogin(value){
                window.name=value;
                window.location='index.html';
            }
            </script>  
            </head>
            
            <body>
            <form id="form1" name="form1" method="post" action="">
              <select name="select" onchange="setLogin(this.value)">
                 <option>seleccionar</option>
                <option value="&exten=100&pass=qwop">Login with 100</option>
                <option value="&exten=101&pass=qwop">Login with 101</option>
              </select>
            </form>
            </body>
            </html>
            
            1 Reply Last reply
            0
            • T
              T
              ttolst
              wrote on last edited by
              #6

              Thank you, i am looking forward to the next release then 🙂

              1 Reply Last reply
              0

              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

              With your input, this post could be even better 💗

              Register Login
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              Powered by NodeBB Contributors
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups