From 792aaf3b6e5fa56da88982f5f668e2acc8f37ca9 Mon Sep 17 00:00:00 2001 From: Ian Lindsay Date: Thu, 24 Oct 2024 09:28:35 +0100 Subject: [PATCH] feat: VOL-5664 selfserve accounts require t&c signup on first login --- config/backend-routes/user/user.php | 6 ++++++ src/Command/User/AgreeTerms.php | 18 ++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 src/Command/User/AgreeTerms.php diff --git a/config/backend-routes/user/user.php b/config/backend-routes/user/user.php index a6cb198d..fa629a76 100644 --- a/config/backend-routes/user/user.php +++ b/config/backend-routes/user/user.php @@ -96,6 +96,12 @@ 'POST' => CommandConfig::getPostConfig(Command\User\RemindUsernameSelfserve::class), ] ), + 'agree-terms' => RouteConfig::getRouteConfig( + 'agree-terms', + [ + 'POST' => CommandConfig::getPostConfig(Command\User\AgreeTerms::class), + ] + ), 'single' => RouteConfig::getSingleConfig( [ 'GET' => QueryConfig::getConfig(Query\User\UserSelfserve::class), diff --git a/src/Command/User/AgreeTerms.php b/src/Command/User/AgreeTerms.php new file mode 100644 index 00000000..ce29e7da --- /dev/null +++ b/src/Command/User/AgreeTerms.php @@ -0,0 +1,18 @@ +