# Reset password

Canonical page: https://docs.ovok.com/flutter-sdk/reference/ovok_flutter/reset-password

{/* Generated by scripts/generate_reference.dart; do not edit. */}

## ResetPassword [#resetpassword]

```dart
class ResetPassword extends StatefulWidget
```

Requests a password reset for a patient or practitioner account.

### Constructors [#constructors]

#### ResetPassword.new [#resetpasswordnew]

```dart
ResetPassword({
  required Ovok ovok,
  AuthTranslations translations = defaultAuthTranslations,
  VoidCallback? onBack,
  void Function(Object)? onError,
  Key? key,
})
```

Creates a password-reset form.

| Parameter | Type | Kind | Default |
| ------ | ------ | ------ | ------ |
| `ovok` | `Ovok` | required named |  |
| `translations` | `AuthTranslations` | named | `defaultAuthTranslations` |
| `onBack` | `VoidCallback?` | named |  |
| `onError` | `void Function(Object)?` | named |  |
| `key` | `Key?` | named |  |

### Properties [#properties]

#### ResetPassword.ovok [#resetpasswordovok]

```dart
final Ovok ovok
```

The client used for reset requests.

#### ResetPassword.translations [#resetpasswordtranslations]

```dart
final AuthTranslations translations
```

Labels to use for this form.

#### ResetPassword.onBack [#resetpasswordonback]

```dart
final VoidCallback? onBack
```

Called when the user returns to sign-in.

#### ResetPassword.onError [#resetpasswordonerror]

```dart
final void Function(Object)? onError
```

Called when a reset request fails.
