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

# ResetPassword

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

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

<Frame>
  <img style={{maxHeight:"400px"}} src="https://mintcdn.com/translations/eVsQcTnbClN-oB7d/docs/images/cdy7uua7fh8z/1sUs1I4uL5GHwAH4RacAEQ/8acef7b055c4ed31405d7125d4e181f6/Screenshot_2025-01-27_at_17.30.17.png?fit=max&auto=format&n=eVsQcTnbClN-oB7d&q=85&s=1ab89d7d9d74065cf0db1aed620d2886" alt="ACUL パスワードのリセット" width="390" height="560" data-path="docs/images/cdy7uua7fh8z/1sUs1I4uL5GHwAH4RacAEQ/8acef7b055c4ed31405d7125d4e181f6/Screenshot_2025-01-27_at_17.30.17.png" />
</Frame>

<div id="constructors">
  ## コンストラクター
</div>

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!',
});
```

<div id="properties">
  ## プロパティ
</div>

<ParamField body="branding" type={<span><a href="/docs/ja-jp/libraries/acul/js-sdk/Screens/interfaces/BrandingMembers">BrandingMembers</a></span>}>
  ブランディングテーマや設定など、ブランディングに関する構成を提供します。
</ParamField>

<ParamField body="client" type={<span><a href="/docs/ja-jp/libraries/acul/js-sdk/Screens/interfaces/ClientMembers">ClientMembers</a></span>}>
  `reset-password` 画面の `id`、`name`、`logoUrl` など、クライアントに関する構成を提供します。
</ParamField>

<ParamField body="organization" type={<span><a href="/docs/ja-jp/libraries/acul/js-sdk/Screens/interfaces/OrganizationMembers">OrganizationMembers</a></span>}>
  ユーザーの組織に関する情報 (`id` や `name` など) を提供します。
</ParamField>

<ParamField body="prompt" type={<span><a href="/docs/ja-jp/libraries/acul/js-sdk/Screens/interfaces/PromptMembers">PromptMembers</a></span>}>
  認証フロー内の現在のプロンプトに関するデータを含みます。
</ParamField>

<ParamField body="screen" type={<span><a href="/docs/ja-jp/libraries/acul/js-sdk/Screens/interfaces/ScreenMembersOnResetPassword">ScreenMembersOnResetPassword</a></span>}>
  設定やコンテキストなど、`reset-password` 画面に固有の詳細を含みます。
</ParamField>

<ParamField body="tenant" type={<span><a href="/docs/ja-jp/libraries/acul/js-sdk/Screens/interfaces/TenantMembers">TenantMembers</a></span>}>
  `id` や関連するメタデータなど、テナントに関するデータを含みます。
</ParamField>

<ParamField body="transaction" type={<span><a href="/docs/ja-jp/libraries/acul/js-sdk/Screens/interfaces/TransactionMembersOnResetPassword">TransactionMembersOnResetPassword</a></span>}>
  有効な識別子やフローの状態など、`reset-password` 画面に固有のトランザクションデータを提供します。
</ParamField>

<ParamField body="untrustedData" type={<span><a href="/docs/ja-jp/libraries/acul/js-sdk/Screens/interfaces/UntrustedDataMembers">UntrustedDataMembers</a></span>}>
  パスワードリセットフロー中のユーザー入力など、SDK に渡される信頼されていないデータを扱います。
</ParamField>

<ParamField body="user" type={<span><a href="/docs/ja-jp/libraries/acul/js-sdk/Screens/interfaces/UserMembers">UserMembers</a></span>}>
  `username`、`email`、`roles` など、現在アクティブなユーザーの詳細です。
</ParamField>

<div id="methods">
  ## メソッド
</div>

<ParamField body="changeLanguage" type="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',
  });
  ```

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

  <Expandable title="パラメーター">
    <ParamField body="options">
      [LanguageChangeOptions](/docs/ja-jp/libraries/acul/js-sdk/Screens/interfaces/LanguageChangeOptions).
    </ParamField>

    <ParamField body="language" type="string" required>
      使用する言語のロケールコード (たとえば、`'en'`、`'fr'`、`'es'`) 。
    </ParamField>

    <ParamField body="persist?" type="&#x22;session&#x22;">
      `'session'` に設定すると、選択した言語はセッション中保持されます。
    </ParamField>
  </Expandable>
</ParamField>

<ParamField body="getErrors" type={<span><a href="/docs/ja-jp/libraries/acul/js-sdk/Screens/interfaces/Error">Error</a>[]</span>}>
  このメソッドは、コンテキストからトランザクションエラーの配列を取得します。エラーがない場合は空の配列を返します。
</ParamField>

<ParamField body="resetPassword" type="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!',
  });
  ```

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

  <Expandable title="パラメーター">
    <ParamField body="options">
      [ResetPasswordOptions](/docs/ja-jp/libraries/acul/js-sdk/Screens/interfaces/ResetPasswordOptions).
    </ParamField>

    <ParamField body="password-reset" type="string" required>
      ユーザーが入力した新しいパスワード。
    </ParamField>

    <ParamField body="re-enter-password" type="string" required>
      新しいパスワードの確認入力。`password-reset` と一致する必要があります。
    </ParamField>
  </Expandable>
</ParamField>

<ParamField body="validatePassword" type={<span><a href="/docs/ja-jp/libraries/acul/js-sdk/Screens/interfaces/PasswordValidationResult">PasswordValidationResult</a></span>}>
  このメソッドは、パスワード文字列がテナントのパスワードポリシーに準拠しているかをバリデーションし、その結果を返します。

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

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

  <Expandable title="パラメーター">
    <ParamField body="password" type="string" required>
      バリデーションするパスワード文字列。
    </ParamField>
  </Expandable>
</ParamField>
