> For the complete documentation index, see [llms.txt](https://movie-team.gitbook.io/movieteam/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://movie-team.gitbook.io/movieteam/accounts/undefined-3.md).

# 비밀번호

비밀번호 관련 API

## 비밀번호 변경

<mark style="color:orange;">`PUT`</mark> `http://127.0.0.1:8000/api/password/`

#### Headers

| Name                                            | Type   | Description                    |
| ----------------------------------------------- | ------ | ------------------------------ |
| Authorization<mark style="color:red;">\*</mark> | String | "Bearer " + 발급 받은 access token |

#### Request Body

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

{% tabs %}
{% tab title="200: OK " %}

````json
```json
{
    "access_token": "access_token",
    "refresh_token": "refresh_token",
    "message": "Password changed successfully."
}
```
````

{% endtab %}
{% endtabs %}

## 비밀번호를 찾기 위한 이메일 인증

<mark style="color:green;">`POST`</mark> `http://127.0.0.1:8000/api/password/reset/`

#### Request Body

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

{% tabs %}
{% tab title="200: OK " %}

````json
```json
{
    "message": "check email please"
}
```
````

{% endtab %}
{% endtabs %}

## 비밀번호 초기화 인증코드 검증 및 비밀번호 변경

<mark style="color:green;">`POST`</mark> `http://127.0.0.1:8000/api/password/reset/`

#### Request Body

| Name                                       | Type   | Description   |
| ------------------------------------------ | ------ | ------------- |
| token<mark style="color:red;">\*</mark>    | String | 비밀번호 초기화 인증코드 |
| password<mark style="color:red;">\*</mark> | String |               |

{% tabs %}
{% tab title="200: OK " %}

````json
```json
{
    "message": "change success, try login"
}
```
````

{% endtab %}
{% endtabs %}
