<commit_before># Authentification

    GET auth/login

## Description

Login to the editor mode.

## Parameters

- **user** _(required)_ — user name.
- **pwd** _(required)_ — password.

***

## Request Headers

    none

***

## Access Allow Origin

    localhost

***

## Response Format

    application/json;charset=UTF-8

## Response Headers

- **200 OK** — login details and user object.

***

## Errors

- **403 Forbidden** — error json.
- **500 Internal Server Error** — error json.

***

## Example
**Request**

    Code Example<commit_msg>apidocs<commit_after># Authentification

    POST auth/login

## Description

Login to the editor mode.

## Parameters

- **user** _(required)_ — user name.
- **pwd** _(required)_ — password.

***

## Request Headers

    none

***

## Access Allow Origin

    localhost

***

## Response Format

    application/json;charset=UTF-8

## Response Headers

- **200 OK** — login details and user object.

***

## Errors

- **403 Forbidden** — error json.
- **500 Internal Server Error** — error json.

***

## Example
**Request**

    none
{'fraction_non_alphanumeric': 0.15512465373961218, 'fraction_numerical': 0.018467220683287166, 'mean_word_length': 3.169230769230769, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '798338', 'n_tokens_mistral': 368, 'n_tokens_neox': 342, 'n_words': 112}