forked from andyburke/autonomous.contact
feature: switch everything to an invite-only model
This commit is contained in:
parent
a3302d2eff
commit
49c7a135d0
10 changed files with 445 additions and 3 deletions
|
|
@ -28,6 +28,7 @@
|
|||
body[data-user] #signup-login-wall {
|
||||
visibility: hidden;
|
||||
opacity: 0;
|
||||
display: none;
|
||||
}
|
||||
|
||||
#signup-login-wall .limiter {
|
||||
|
|
@ -125,6 +126,19 @@
|
|||
<label class="placeholder" for="signup-password">password</label>
|
||||
</div>
|
||||
<div>
|
||||
<script>
|
||||
document.addEventListener("DOMContentLoaded", () => {
|
||||
const query = new URL(document.location.toString())
|
||||
.searchParams;
|
||||
const invite_code = query.get("invite_code");
|
||||
if (typeof invite_code === "string" && invite_code.length) {
|
||||
document.getElementById("signup-invite-code").value =
|
||||
decodeURIComponent(invite_code);
|
||||
|
||||
document.getElementById("signup-tab-input").checked = true;
|
||||
}
|
||||
});
|
||||
</script>
|
||||
<input
|
||||
id="signup-invite-code"
|
||||
type="text"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue