passwordReset method

  1. @override
Future<bool> passwordReset()
override

Implementation

@override
Future<bool> passwordReset() async {
  final user = await getUser();

  if (user != null) {
    await _generalAuth.sendPasswordResetEmail(email: user.email!);

    return true;
  } else {
    ModLogger.e(
        tag: TAG,
        msg: "passwordReset() required but no user found",
        error: null);

    return false;
  }
}