HOME COMMUNITY BLOG
Skip to end of metadata
Go to start of metadata

AjaxLogin

Authenticates a user using username and password provided in the query string. Authentication cookie is set as a result.

Parameters

usernameUsername to check.
passwordPassword to check.

Returns

JSON string with the following values:

Statusint

Status code.

  • 200 = OK
  • 204 = Username and password doesn't match
  • 500 = Fails
MessagestringStatus clarification.

Example Request

AjaxSignOut

Sign out current user – resets an authentication cookie and releases user-related data from the server.

RETURNS

JSON string with the following values:

Statusint

Status code.

  • 200 = OK
  • 500 = Fails
MessagestringStatus clarification.

Configuration

In order to enable AjaxLogin to all users you need to add the following part into your web.config file:

web.config
  • No labels