Hide Sign Up form from IPs outside Protospace

This commit is contained in:
2021-09-04 20:27:16 +00:00
parent ccd44a063b
commit 1f5f99c971
3 changed files with 87 additions and 65 deletions
+3 -1
View File
@@ -166,6 +166,8 @@ export function Home(props) {
const alarmStat = () => stats && stats.alarm && moment().unix() - stats.alarm['time'] < 300 ? stats.alarm['data'] < 270 ? 'Armed' : 'Disarmed' : 'Unknown';
const show_signup = stats?.at_protospace || bypass_code;
return (
<Container>
<Grid stackable padded columns={2}>
@@ -197,7 +199,7 @@ export function Home(props) {
</>
}
<SignupForm {...props} />
<SignupForm {...props} show_signup={show_signup} />
</div>
}
</Grid.Column>