Authenticate user into wordpress via 3rd party system, both with the same domain
I found a way to do it. I created a new folder under https://domain.tld/store/ and created 2 new files (/store/integra/wp-login.php and /store/integra/wp-auth.php). wp-login.php require_once(“wp-auth.php”); auth(); wp-auth.php startit(); function auth() { // decode query string $u = base64_decode($_GET[‘u’]); $p = base64_decode($_GET[‘p’]); $r = base64_decode($_GET[‘r’]); $username = htmlspecialchars($u); $password = htmlspecialchars($p); $user = get_user_by(‘login’, $username); if (!wp_check_password($password, … Read more