Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/apps/api-tests/OAuthTestClient.cs
diff options
context:
space:
mode:
authorLeitwolf2026-11-07 11:43:30 +0300
committerGitHub2026-11-07 11:43:30 +0300
commitd28c8c216708c3bb59773722e6235c4c8cbb2b73 (patch)
tree00101b2c540df4f683a0aae890f8366f473f2be4 /apps/api-tests/OAuthTestClient.cs
parent097fb096966117fe259bc2cd721527bbec04e57d (diff)
parent5379c74171c0ef0d08c999ce93e2a03c37d25889 (diff)
downloadprogmaweb-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.cs2
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")