JSON for CMD_LOGOUT and CMD_LOGIN

Version 1.52

Feature
Finished

If you include GET: json=yes you'll get json output. CMD_LOGOUT?json=yes returns: { "result": "success", "success": "logout" } if you were "logged in as" the User, and end up as the creator, you'll get: { "current_user": "admin", "result": "success", "success": "creator_logout" } where "admin" is the creator. If a LOGOUT_URL was specified at login time, a value: "LOGOUT_URL":"http://logout.com", will also be present at logout. ============= CMD_LOGIN: POST: json=yes note that is is a POST, not a GET for the login. GET will not be seen. During login, if json=yes is included with the POST, you'll get output like: { "json": "yes", "referer": "/", "success": "yes", "username": "admin" } If FAIL_URL was specfiied at login time, you'll get it in the output, eg "FAIL_URL": "http://failure.com", "LOGOUT_URL": "http://logout.com", the LOGOUT_URL will also be shown if passed, but not likely you'll be using it.

Interested to try DirectAdmin? Get a 30-day Free Trial!