Log in
phpSign up and sign in for your own visitors, scoped to your site. Passwords hashed, sessions expire, tokens can be revoked.
How to use it
No usage notes have been written for this API yet. The dashboard for it
shows the request shape it expects.
Endpoints
Every reply has the same shape: success, code, message, data and request_id. Branch on code, never on message.
POST
/apis/myapis/auth.php?action=signupCallable from a page, or with the secretCreate a visitor account on your site.
Requires:
username (body)</code>, <code>password (body)POST
/apis/myapis/auth.php?action=loginCallable from a page, or with the secretSign a visitor in and get a session token.
Requires:
username (body)</code>, <code>password (body)POST
/apis/myapis/auth.php?action=logoutCallable from a page, or with the secretEnd a visitor session.
POST
/apis/myapis/auth.php?action=forgotCallable from a page, or with the secretSend a visitor a password reset link.
Requires:
email (body)POST
/apis/myapis/auth.php?action=resetCallable from a page, or with the secretSet a new password using the token from the email.
Requires:
token (body)</code>, <code>password (body)GET
/apis/myapis/auth.php?action=meCallable from a page, or with the secretThe signed-in visitor profile.
Facts
| Slug | log-in |
|---|---|
| Installed on | 1 site(s) |
| Status | published |
| In the 2015 catalogue | yes, as api id 7 |
Install on your sites
Sign in as a developer to install this on a site you own.