resetPassword method

  1. @override
Future resetPassword(
  1. String? correlationId,
  2. String userId,
  3. String code,
  4. String password,
)
override

Resets a password.

  • correlationId (optional) transaction id to trace execution through call chain.
  • userId an id of password.
  • code a code.
  • password a password. Return Future that receives null for success.

Implementation

@override
Future resetPassword(String? correlationId, String userId, String code,
    String password) async {
  var timing = instrument(correlationId, 'passwords.reset_password');
  var result =
      await controller.resetPassword(correlationId, userId, code, password);
  timing.endTiming();
  return result;
}