2022-02-14 06:01:26 -06:00
|
|
|
<!doctype html>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
2022-02-21 09:22:25 -06:00
|
|
|
<title>Privacy policy</title>
|
2022-02-14 06:01:26 -06:00
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
{{ if .HasConsented }}
|
|
|
|
<p>
|
2022-02-21 09:22:25 -06:00
|
|
|
You have already given your consent.
|
2022-02-14 06:01:26 -06:00
|
|
|
</p>
|
|
|
|
{{ else }}
|
|
|
|
<p>
|
2022-02-21 09:22:25 -06:00
|
|
|
Please give your consent to keep using this homeserver.
|
2022-02-14 06:01:26 -06:00
|
|
|
</p>
|
2022-03-07 02:45:24 -06:00
|
|
|
{{ if not .ReadOnly }}
|
2022-02-14 06:01:26 -06:00
|
|
|
<!-- The variables used here are only provided when the 'u' param is given to the homeserver -->
|
|
|
|
<form method="post" action="consent">
|
|
|
|
<input type="hidden" name="v" value="{{ .Version }}"/>
|
2022-03-07 02:45:24 -06:00
|
|
|
<input type="hidden" name="u" value="{{ .UserID }}"/>
|
2022-02-14 06:01:26 -06:00
|
|
|
<input type="hidden" name="h" value="{{ .UserHMAC }}"/>
|
2022-03-07 02:45:24 -06:00
|
|
|
<input type="submit" value="I consent"/>
|
2022-02-14 06:01:26 -06:00
|
|
|
</form>
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
</body>
|
|
|
|
</html>
|