terms_of_service icon indicating copy to clipboard operation
terms_of_service copied to clipboard

Use hooks instead of stack trace inspection

Open PVince81 opened this issue 3 years ago • 2 comments

Instead of inspecting the stack trace in https://github.com/nextcloud/terms_of_service/blob/36f2a483eb696d5f14d8bac8b3feb2f3b186a6ff/lib/Filesystem/Helper.php#L66, introduce (cancellable?) hooks in relevant classes in server.

The hooks could be called something like "beforeCopySkeleton" and "afterCopySkeleton"

  • [ ] LoginController
  • [ ] ClientFlowLoginController
  • [ ] ClientFlowLoginV2Controller
  • [ ] RegisterController

PVince81 avatar Mar 18 '21 10:03 PVince81