setPassword method

  1. @override
Future setPassword(
  1. String? correlationId,
  2. String userId,
  3. String password
)
override

Sets a password.

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

Implementation

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