diff options
| author | Leitwolf | 2026-11-07 11:43:30 +0300 |
|---|---|---|
| committer | GitHub | 2026-11-07 11:43:30 +0300 |
| commit | d28c8c216708c3bb59773722e6235c4c8cbb2b73 (patch) | |
| tree | 00101b2c540df4f683a0aae890f8366f473f2be4 /apps/api-tests/OAuthTestClient.cs | |
| parent | 097fb096966117fe259bc2cd721527bbec04e57d (diff) | |
| parent | 5379c74171c0ef0d08c999ce93e2a03c37d25889 (diff) | |
| download | progmaweb-d28c8c216708c3bb59773722e6235c4c8cbb2b73.tar.gz | |
Merge pull request #58 from Progmasoft/feature/policies-consent
Ask for the Privacy and Security Policies at registration
Diffstat (limited to 'apps/api-tests/OAuthTestClient.cs')
| -rw-r--r-- | apps/api-tests/OAuthTestClient.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/api-tests/OAuthTestClient.cs b/apps/api-tests/OAuthTestClient.cs index a176c04..a5d342d 100644 --- a/apps/api-tests/OAuthTestClient.cs +++ b/apps/api-tests/OAuthTestClient.cs @@ -37,7 +37,7 @@ internal sealed class OAuthTestClient(AccountApiFactory factory) { using HttpClient accounts = factory.CreateAccountClient(handleCookies: false); HttpResponseMessage registered = await accounts.PostAsJsonAsync("/api/v1/accounts/register", - new { accountName, email, password = "correct horse battery staple" }, Cancel); + new { accountName, email, password = "correct horse battery staple", acceptPolicies = true }, Cancel); Assert.Equal(HttpStatusCode.Created, registered.StatusCode); // The console knows the account of the Progmasoft account session; it has no sign-in of its own. string session = registered.Headers.GetValues("Set-Cookie") |