Login to application

Supports both json and form request types. If the caller is already logged in, they are logged out and the new user is logged in.

post/login

Query parameters

nextstring

URL to redirect to on successful registration. Ignored for json request.

Request body

emailstring required

user identifier. This is by default an email address, but can be any (unique) field that is part of the User model and is defined in the USER_IDENTITY_ATTRIBUTES configuration variable. It will also match against numeric User model fields.

passwordstring required

Password

remember_meboolean

If true, will remember userid as part of cookie. There is a configuration variable DEFAULT_REMEMBER_ME that can be set. This field will override that.

Response

Login response

csrf_tokenstring

Session CSRF token

Example response

{
  "user": {
    "id": 42
  }
}

Changes