Skip to content

Commit

Permalink
feat: VOL-5664 selfserve accounts require t&c signup on first login
Browse files Browse the repository at this point in the history
  • Loading branch information
ilindsay committed Oct 24, 2024
1 parent 3256ac5 commit 792aaf3
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
6 changes: 6 additions & 0 deletions config/backend-routes/user/user.php
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down
18 changes: 18 additions & 0 deletions src/Command/User/AgreeTerms.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?php

declare(strict_types=1);

namespace Dvsa\Olcs\Transfer\Command\User;

use Dvsa\Olcs\Transfer\FieldType\Traits\Identity;
use Dvsa\Olcs\Transfer\FieldType\Traits\TranslateToWelshOptional;
use Dvsa\Olcs\Transfer\Util\Annotation as Transfer;
use Dvsa\Olcs\Transfer\Command\AbstractCommand;

/**
* @Transfer\RouteName("backend/user/selfserve/agree-terms")
* @Transfer\Method("PUT")
*/
final class AgreeTerms extends AbstractCommand
{
}

0 comments on commit 792aaf3

Please sign in to comment.