> ## Documentation Index
> Fetch the complete documentation index at: /docs/llms.txt
> Use this file to discover all available pages before exploring further.

# ResetPassword

> Universal Login の `reset-password` 画面をカスタマイズするために使用できる、すべてのプロパティとメソッドについて説明します。

ResetPassword クラスは、`reset-password` 画面の機能を提供します。この画面では、ユーザーは本人確認後に新しいパスワードを設定できます。

![ACUL パスワードのリセット](https://mintlify.s3.us-west-1.amazonaws.com/docs-dev/images/cdy7uua7fh8z/1sUs1I4uL5GHwAH4RacAEQ/8acef7b055c4ed31405d7125d4e181f6/Screenshot_2025-01-27_at_17.30.17.png)

## コンストラクター

ResetPassword 画面マネージャーのインスタンスを作成します：

```typescript Example theme={null}
import ResetPassword from '@auth0/auth0-acul-js/reset-password';
const resetPasswordManager = new ResetPassword();
resetPasswordManager.resetPassword({
  'password-reset': 'Test@123!',
  're-enter-password': 'Test@123!',
});
```

## プロパティ

**branding** `[BrandingMembers](/docs/ja-jp/libraries/acul/js-sdk/Screens/interfaces/BrandingMembers)`

ブランディングテーマや設定など、ブランディングに関する構成を提供します。

**client** `[ClientMembers](/docs/ja-jp/libraries/acul/js-sdk/Screens/interfaces/ClientMembers)`

`reset-password` 画面の `id`、`name`、`logoUrl` など、クライアントに関する構成を提供します。

**countryCodes** `[CountryCodesMembers](/docs/ja-jp/libraries/acul/js-sdk/Screens/interfaces/CountryCodesMembers)`

電話番号入力用の国コードデータ (`available` や `recommended` など) を、`reset-password` 画面向けに提供します。

**experiment** `[ExperimentMembers](/docs/ja-jp/libraries/acul/js-sdk/Screens/interfaces/ExperimentMembers)`

この画面で実行中の [Experiment Center](/docs/docs/ja-jp/customize/experiment-center) の実験です。実行中の実験がない場合 (または画面が `context_configuration` でオプトインしていない場合) は `null` になります。

**organization** `[OrganizationMembers](/docs/ja-jp/libraries/acul/js-sdk/Screens/interfaces/OrganizationMembers)`

ユーザーの組織に関する情報 (`id` や `name` など) を提供します。

**prompt** `[PromptMembers](/docs/ja-jp/libraries/acul/js-sdk/Screens/interfaces/PromptMembers)`

認証フロー内の現在のプロンプトに関するデータを含みます。

**screen** `[ScreenMembersOnResetPassword](/docs/ja-jp/libraries/acul/js-sdk/Screens/interfaces/ScreenMembersOnResetPassword)`

設定やコンテキストなど、`reset-password` 画面に固有の詳細を含みます。

**tenant** `[TenantMembers](/docs/ja-jp/libraries/acul/js-sdk/Screens/interfaces/TenantMembers)`

`id` や関連するメタデータなど、テナントに関するデータを含みます。

**transaction** `[TransactionMembersOnResetPassword](/docs/ja-jp/libraries/acul/js-sdk/Screens/interfaces/TransactionMembersOnResetPassword)`

有効な識別子やフローの状態など、`reset-password` 画面に固有のトランザクションデータを提供します。

**untrustedData** `[UntrustedDataMembers](/docs/ja-jp/libraries/acul/js-sdk/Screens/interfaces/UntrustedDataMembers)`

パスワードリセットフロー中のユーザー入力など、SDK に渡される信頼されていないデータを扱います。

**user** `[UserMembers](/docs/ja-jp/libraries/acul/js-sdk/Screens/interfaces/UserMembers)`

`username`、`email`、`roles` など、現在アクティブなユーザーの詳細です。

## メソッド

**changeLanguage** `Promise\<void\>`

このメソッドは、Universal Login ページの表示言語を変更します。

```typescript Example theme={null}
import ResetPassword from '@auth0/auth0-acul-js/reset-password';
const resetPasswordManager = new ResetPassword();
resetPasswordManager.changeLanguage({
  language: 'fr',
});
```

**メソッドのパラメーター**

**パラメーター**

**options**

[LanguageChangeOptions](/docs/docs/ja-jp/libraries/acul/js-sdk/Screens/interfaces/LanguageChangeOptions).

**language** `string` *required*

使用する言語のロケールコード (たとえば、`'en'`、`'fr'`、`'es'`) 。

**persist?** `"session"`

`'session'` に設定すると、選択した言語はセッション中保持されます。

**getErrors** `[Error](/docs/ja-jp/libraries/acul/js-sdk/Screens/interfaces/Error)[]`

このメソッドは、コンテキストからトランザクションエラーの配列を取得します。エラーがない場合は空の配列を返します。

**resetPassword** `Promise\<void\>`

このメソッドは、ユーザーの新しいパスワードを送信して、パスワードリセットフローを完了します。

```typescript Example theme={null}
import ResetPassword from '@auth0/auth0-acul-js/reset-password';
const resetPasswordManager = new ResetPassword();
resetPasswordManager.resetPassword({
  'password-reset': 'Test@123!',
  're-enter-password': 'Test@123!',
});
```

**メソッドのパラメーター**

**パラメーター**

**options**

[ResetPasswordOptions](/docs/docs/ja-jp/libraries/acul/js-sdk/Screens/interfaces/ResetPasswordOptions).

**password-reset** `string` *required*

ユーザーが入力した新しいパスワード。

**re-enter-password** `string` *required*

新しいパスワードの確認入力。`password-reset` と一致する必要があります。

**validatePassword** `[PasswordValidationResult](/docs/ja-jp/libraries/acul/js-sdk/Screens/interfaces/PasswordValidationResult)`

このメソッドは、パスワード文字列がテナントのパスワードポリシーに準拠しているかをバリデーションし、その結果を返します。

```typescript Example theme={null}
import ResetPassword from '@auth0/auth0-acul-js/reset-password';
const resetPasswordManager = new ResetPassword();
resetPasswordManager.validatePassword('MyP@ssw0rd!');
```

**メソッドのパラメーター**

**パラメーター**

**password** `string` *required*

バリデーションするパスワード文字列。
