fix(backend): disable one-registration-per-IP by default

Shared NAT egress makes client IP unusable for uniqueness checks. Gate the
behavior behind REGISTRATION_ENFORCE_IP (default false) for public/invite signup.
This commit is contained in:
ahp
2026-10-07 23:13:22 +03:30
parent 92b1681241
commit 3cce2158e9
15 changed files with 103 additions and 53 deletions
+1
View File
@@ -130,6 +130,7 @@ func TestInviteRevoke(t *testing.T) {
}
func TestInviteDuplicatePhoneAndIP(t *testing.T) {
t.Setenv("REGISTRATION_ENFORCE_IP", "true")
e := setup(t)
inv := createInvite(t, e, 5, "", nil)
token := inv["token"].(string)