Log in (session + JWT)
Auth – AJAX
Log in (session + JWT)
WordPress AJAX login with reCAPTCHA/Turnstile verification.
On success, establishes a WP session cookie and issues a JWT
token pair stored in $_SESSION.
Registered as wp_ajax_nopriv_sagescreen_login — public.
Special behaviours:
- Hard maintenance mode blocks non-global-admin logins.
- Users with
memberrole or nocouncil_idare blocked (except global admins). - If a pending Stripe order session exists, it is processed and credits are appended to the redirect URL.
- TODO(productlane): BoldDesk SSO removed from this spec — the login handler still emits a BoldDesk JWT when the request originates from BoldDesk; remove or replace with the ProductLane flow.
POST
Log in (session + JWT)
Body
application/x-www-form-urlencoded
Allowed value:
"sagescreen_login"WP nonce for sagescreen_login
Cloudflare Turnstile / reCAPTCHA token
Example:
"john.doe"
Example:
"SecurePass123"
'1' to persist session, omit otherwise
Example:
"1"
Post-login redirect URL (optional, auto-determined if omitted)
Example:
"/admin/dashboard"