2022-02-14 06:06:36 -06:00
|
|
|
<!doctype html>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
2022-03-07 02:45:24 -06:00
|
|
|
<title>Privacy policy</title>
|
2022-02-14 06:06:36 -06:00
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
{{ if .HasConsented }}
|
2022-03-07 02:45:24 -06:00
|
|
|
<p>
|
|
|
|
You have already given your consent.
|
|
|
|
</p>
|
2022-02-14 06:06:36 -06:00
|
|
|
{{ else }}
|
2022-03-07 02:45:24 -06:00
|
|
|
<p>
|
|
|
|
Please give your consent to keep using this homeserver.
|
|
|
|
</p>
|
|
|
|
{{ if not .ReadOnly }}
|
|
|
|
<!-- 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 }}"/>
|
|
|
|
<input type="hidden" name="u" value="{{ .UserID }}"/>
|
|
|
|
<input type="hidden" name="h" value="{{ .UserHMAC }}"/>
|
|
|
|
<input type="submit" value="I consent"/>
|
|
|
|
</form>
|
|
|
|
{{ end }}
|
2022-02-14 06:06:36 -06:00
|
|
|
{{ end }}
|
|
|
|
</body>
|
|
|
|
</html>
|