-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement privacy policy support (#195)
* Implement privacy policy support Servers can now provide privacy policy information via their info API. If provided, users will be prompted to accept the policy while being presented with a link to open it. Accepted privacy policies are stored in the launcher's settings database. Servers can report changes in their privacy policy version, in which case the user will be re-prompted with a different message. Fixes #194 * Deny -> Decline
- Loading branch information
Showing
9 changed files
with
280 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
SS14.Launcher/Models/Data/Migrations/Script0007_PrivacyPolicy.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
-- Represents privacy policies that have been accepted by the user. | ||
-- Each policy is stored with its server-unique identifier and version value. | ||
CREATE TABLE AcceptedPrivacyPolicy( | ||
-- The "identifier" field from the privacy_policy server info response. | ||
Identifier TEXT NOT NULL PRIMARY KEY, | ||
|
||
-- The "version" field from the privacy_policy server info response. | ||
Version TEXT NOT NULL, | ||
|
||
-- The time the user accepted the privacy policy for the first time. | ||
AcceptedTime DATETIME NOT NULL, | ||
|
||
-- The last time the user connected to a server using this privacy policy. | ||
-- Intended to enable culling of this table for servers the user has not connected to in a long time, | ||
-- though this is not currently implemented at the time of writing. | ||
LastConnected DATETIME NOT NULL | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.