confirmPassword method

Future<bool> confirmPassword(
  1. UserModel model,
  2. String basePassword
)

Confirms if the given basePassword is the correct password for the given model.

Implementation

Future<bool> confirmPassword(
  UserModel model,
  String basePassword,
) async {
  final authentication = await findUserAuthentication(model);
  if (authentication == null) {
    return false;
  }
  return authenticationGenerator.confirmAuthentication(
    authentication,
    basePassword,
  );
}