ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

private automatic login form?

March 12, 2009 2:50pm

Subscribe [3]
  • #1 / Mar 12, 2009 2:50pm

    justlookin

    4 posts

    While our site is still under development and testing I’d like to encourage internal staff to poke around. I don’t want them to be faced with yet-another-login page. How can I set up a page with a link on our internal site which when clicked on automatically logs them into the external expression engine site under a specific username without asking for a username and password?

    I tried this but it doesn’t work:

    <form action="http://www.example.com/ee/admin/index.php?S=0&C=login&M=auth" method="post">
          <input name="XID" value="1bc1a6a8e77bf285d34499f29b6f24033aeaebcb" type="hidden">
          <input name="return_path" value="index.php" type="hidden">
          <input dir="ltr" style="width: 150px;" name="username" id="username" value="" size="20" maxlength="32" class="input" type="hidden" value="guest_account">
          <input dir="ltr" style="width: 150px;" name="password" id="password" value="" size="20" maxlength="32" class="input" type="hidden" value="guest_password">
          <input class="submit" value="Submit" type="submit">
    </form>
  • #2 / Mar 12, 2009 2:57pm

    Mark Bowen

    12637 posts

    You could use the LogMeIn plugin to do this but you would probably want to create a really weirdly named template or something so that no-one outside your staff access it just by guessing the name or something like that.

    Hope that helps a bit.

    Best wishes,

    Mark

  • #3 / Mar 12, 2009 5:30pm

    lebisol

    2234 posts

    Also, if you are going to require multiuser/group login make sure they know this will change…otherwise you are giving them a ‘feature’ that will be taken away down the line

  • #4 / Mar 12, 2009 8:17pm

    justlookin

    4 posts

    thanks, that did the trick.

  • #5 / Mar 12, 2009 8:22pm

    Mark Bowen

    12637 posts

    No problem.

    Hope it all goes well for you.

    Best wishes,

    Mark

  • #6 / Mar 12, 2009 8:49pm

    justlookin

    4 posts

    a follow-on question: any idea how I can get the login page to automatically redirect to another page? I tried meta-refresh in the header but it was ineffective.

  • #7 / Mar 12, 2009 8:57pm

    lebisol

    2234 posts

    see if this thread helps…I have never used it.

  • #8 / Mar 12, 2009 9:07pm

    Mark Bowen

    12637 posts

    Or you could just simply use the {redirect=""} Global Variable if you are after a simple built-in method.

    That extension is rather sexy though 😉

    Best wishes,

    Mark

  • #9 / Mar 23, 2009 5:48pm

    lebisol

    2234 posts

    Here is this article as well for an alternative…perhaps not what you need but at least something to consider.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases