# login

## 로그인

<mark style="color:green;">`POST`</mark> `http://rightnow.p-e.kr/user/login`

#### Request Body

| Name                                       | Type   | Description |
| ------------------------------------------ | ------ | ----------- |
| email<mark style="color:red;">\*</mark>    | String |             |
| password<mark style="color:red;">\*</mark> | String |             |

{% tabs %}
{% tab title="200: OK 로그인 요청 성공" %}

```javascript
{
    "accessToken":accessToken,
    "message":"ok"
}
```

{% endtab %}

{% tab title="401: Unauthorized 비밀번호가 일치하지 않음" %}

```javascript
{
    "message":"incorrect password"
}
```

{% endtab %}

{% tab title="404: Not Found 차단된 유저" %}

```javascript
{
    "data": {
        "block_date": "2022-01-06 00:00:00"
    },
    "message": "block user"
}
```

{% endtab %}

{% tab title="400: Bad Request 이메일이 존재하지 않음" %}

```javascript
{
    "message":"no exists email"
}
```

{% endtab %}

{% tab title="500: Internal Server Error 서버 다운" %}

```javascript
{
    "message":"err"
}
```

{% endtab %}
{% endtabs %}
