startPasswordReset method

Future<UuidValue> startPasswordReset(
  1. Session session, {
  2. required String email,
})

Requests a password reset for email.

If the email address is registered, an email with reset instructions will be send out. If the email is unknown, this method will have no effect.

Always returns a password reset request ID, which can be used to complete the reset. If the email is not registered, the returned ID will not be valid.

Throws an EmailAccountPasswordResetException in case of errors, with reason:

Implementation

Future<UuidValue> startPasswordReset(
  final Session session, {
  required final String email,
}) async {
  return emailIdp.startPasswordReset(session, email: email);
}