We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 17207
    • 23 Posts
    How can i use the Login snippet to authenticate user/pass values coming from $_POST (instead of the Login form)?

    Thanks
    • $_POST is $_POST, whether it’s from the login form or some other source. The WebLogin is looking for specific $_POST fields, so what you need to do is use a plugin to set the fields WebLogin is looking for from the $_POST values your other source is supplying. Then the WebLogin snippet will happily process its $_POST field values.
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 17207
        • 23 Posts
        Thank you SOO much...

        By the way im using "Login" for Revolution but works all the same.

        This could be a really great addition to the documentation.

        Diego.