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

summaryrefslogtreecommitdiffhomepage
path: root/apps/api-tests/PostgresTestDatabase.cs
diff options
context:
space:
mode:
authorLeitwolf112026-10-29 15:35:06 +0300
committerLeitwolf112026-10-29 15:35:06 +0300
commit21b515565b73f86477afe436bb3588f3e5929443 (patch)
treed85894c17ab0a8fe197de20eeecd632cbd362703 /apps/api-tests/PostgresTestDatabase.cs
parent44d14a8ad8cb41f0bb722898d216ab006798d5cd (diff)
downloadprogmaweb-21b515565b73f86477afe436bb3588f3e5929443.tar.gz
Provision the reserved accounts on the server
Registration refuses the reserved names Progmasoft and Leitwolf, which are meant to be created by trusted operations tooling only, and that tooling did not exist: the Progmasoft account, the publisher of Progmasoft's Tazel plugins on ViGet, could not be created at all. - 'accounts provision-reserved <Name> <email>' runs with the configuration of the service, like the viget commands. It accepts only the reserved names, applies the rules of registration to the email address and the password, never replaces an existing account, and brings the account tables to the current schema first. - The password is read from the terminal without echo, twice, or from one line of standard input when it is not a terminal; it never appears on a command line or in the output. - AccountNamePolicy.TryNormalizeReserved checks a reserved name; TryNormalize, which registration uses, still refuses it. Tests cover a reserved account created and signing in with its password, a name that is not reserved, two different passwords, a weak password, an existing account and the usage line. ops/README.md shows the command with systemd-run --pty; docs/ACCOUNT-API.md points to it.
Diffstat (limited to 'apps/api-tests/PostgresTestDatabase.cs')
0 files changed, 0 insertions, 0 deletions