Privacy Policy Fixes Part 2 (#5310)

## About The Pull Request

- Fixes the privacy policy still showing up after accepted.
- Makes it so closing out of the window kicks you.
- Converts the whole thing from preference based to SQL based.
## Why It's Good For The Game
Fixes and polish for a previously accepted PR are good for the game,
yes.
## Proof Of Testing
I can't take a screenshot of a privacy policy that didn't show up the
second time around after I accepted it, but it properly filled out the
database and worked during testing.

## Changelog
🆑
add: Closing out of the Privacy Policy window instead of accepting it
now kicks you.
fix: Fixed the Privacy Policy window showing up after you've already
accepted it once, for real this time.
/🆑
This commit is contained in:
Alexis
2026-03-11 18:20:18 -04:00
committed by GitHub
parent cc7d318c41
commit 98b6a2ff1a
10 changed files with 92 additions and 35 deletions
+9
View File
@@ -45,3 +45,12 @@ CREATE TABLE `stored_faxes` (
COLLATE='utf8mb4_general_ci'
ENGINE=InnoDB
;
DROP TABLE IF EXISTS `privacy_policy_acceptances`;
CREATE TABLE `privacy_policy_acceptances` (
`id` INT NOT NULL AUTO_INCREMENT,
`ckey` VARCHAR(32) NOT NULL,
`policy_key` VARCHAR(64) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE INDEX `ckey_policy_unique` (`ckey`, `policy_key`)
);