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

summaryrefslogtreecommitdiffhomepage
path: root/apps/api/Accounts/PolicyAcceptance.cs
blob: 1abf8445f4bdd3be30d6625a80d637d2f27bd75f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// SPDX-FileCopyrightText: 2026 Progmasoft <support@progmasoft.com>
// SPDX-License-Identifier: AGPL-3.0-or-later

namespace Progmasoft.Progmaweb.Api.Accounts;

/// <summary>The Privacy Policy and Security Policy a new account accepts.</summary>
/// <remarks>
/// Registration, with a password or through Google, creates an account only after the person accepted both policies.
/// The account keeps the version it accepted and the moment, so a later version of the policies can tell who has
/// accepted it. The text lives on the <c>/privacy</c> and <c>/security</c> pages of the web application, which name
/// the same version.
/// </remarks>
internal static class PolicyAcceptance
{
    /// <summary>The version of the policies, the date they took effect.</summary>
    public const string CurrentVersion = "2026-11-06";

    /// <summary>The message of a registration that did not accept the policies.</summary>
    public const string RequiredMessage = "Accept the Privacy Policy and the Security Policy to create an account.";
}