terms_of_service
terms_of_service copied to clipboard
Use hooks instead of stack trace inspection
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