WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Help please - Login with query string (8 posts)

  1. PrettyPixels
    Member
    Posted 1 year ago #

    I'm trying to log in by using a query string. For some reason, the URL I'm using simply refreshes to the wp-login.php page and doesn't log me in.

    Here is the URL I'm using, obviously with the actual credentials changed. ;) Can you please take a look and let me know what needs to be changed for it to work?

    http://myWordpress.com/blogs/wp-login.php&log=myusername&pwd=mypassword&remember_me=forever&redirect_to=http://myWordpress/blogs/wp-admin/&testcookie=1

    I appreciate any help you can offer.

  2. esmi
    Forum Moderator
    Posted 1 year ago #

    Can we have the real site url?

  3. PrettyPixels
    Member
    Posted 1 year ago #

    Sure! It's http://fnpiwp-web1.vps.orases.com/blogs/wp-login.php?log=testuser&pwd=Bf00CKOd6ThQ&remember_me=forever&redirect_to=http://fnpiwp-web1.vps.orases.com/blogs/wp-admin/&testcookie=1

    I've also created a test user and embedded their real credentials in the URL. As you can see, it works when you login through the form, but not when embedded in the URL.

  4. esmi
    Forum Moderator
    Posted 1 year ago #

  5. PrettyPixels
    Member
    Posted 1 year ago #

    The values are passing from a web service, and I need them to log in directly (rather then logging in again). The users' correct values will be passed in the URL.

  6. PrettyPixels
    Member
    Posted 1 year ago #

    I also tried with just the username and password, and that is not working either.

    http://fnpiwp-web1.vps.orases.com/blogs/wp-login.php?log=testuser&pwd=Bf00CKOd6ThQ

    Am I formatting this incorrectly? Or is there something I need to change in WordPress to accept query strings?

  7. esmi
    Forum Moderator
    Posted 1 year ago #

    The values are passing from a web service, and I need them to log in directly

    That's not going to be as easy as just passing variables to wp-login.php. WordPress logins simply do not work that way. I suggest that you post a new topic in the Hacks forum asking how to create a combined login.

  8. PrettyPixels
    Member
    Posted 1 year ago #

    Ok. Thanks for your help, Esmi! :)

Topic Closed

This topic has been closed to new replies.

About this Topic