Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: VOL-5664 selfserve accounts require t&c signup on first login #97

Merged
merged 4 commits into from
Nov 15, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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;
ilindsay marked this conversation as resolved.
Show resolved Hide resolved
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
{
fibble marked this conversation as resolved.
Show resolved Hide resolved
}
Loading