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

summaryrefslogtreecommitdiffhomepage
path: root/apps/api/Accounts/PolicyAcceptance.cs
blob: f31760d4b8539e53bf38087e6fe9a9756b9c85b2 (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 WITH AdditionRef-Progmasoft-Patent-Grant-1.1

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.";
}