startPasswordReset method

  1. @override
Future<UuidValue> startPasswordReset({
  1. 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:

  • EmailAccountPasswordResetExceptionReason.tooManyAttempts if the user has made too many attempts trying to request a password reset.

Implementation

@override
_i2.Future<_i1.UuidValue> startPasswordReset({required String email}) =>
    caller.callServerEndpoint<_i1.UuidValue>(
      'emailIdp',
      'startPasswordReset',
      {'email': email},
    );