Fork 0

hswaw/checkinator: add notice about random MACs

Nowadays both smartphones and iphones have MAC address randomisation
turned on by default. This breaks checkinator because, while the claim
works as intended, the address added to the database is the random one
and on the next visit the address is different, so the device is
categorised as unknown.

The simplest way to fix this is by the user to ensure that MAC address
is randomised per network, not per-connection (which at least on Android
is itself a per-network knob). This change adds a notice to remind the
user about this.

Signed-off-by: Wojtek Porczyk <woju@hackerspace.pl>
Change-Id: Ieee74d09114e6f0479f44429d9828e47c95eb6bd
Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1362
Reviewed-by: q3k <q3k@hackerspace.pl>
woju 2022-08-21 19:00:29 +02:00 committed by woju
parent 211d88a34f
commit b56b8fca92
1 changed files with 7 additions and 3 deletions

View File

@ -4,7 +4,11 @@
{% if not hwaddr %}
<p class="error">Unknown MAC. Are you sure you're in the hackerspace?</p>
{% else %}
You are about to claim <strong>{{ hwaddr }}</strong> as <strong>{{ current_user.id }}</strong>. Do you wish to continue?
You are about to claim <strong>{{ hwaddr }}</strong> as
<strong>{{ current_user.id }}</strong>. Please make sure you have MAC
address randomisation configured per-network or turned off entirely.
<form action="" method="post">
@ -12,9 +16,9 @@
<td><input type="text" name="name" value="{{ name }}"></td>
<td><input type="submit" value="yes"></td>
<td><input type="submit" value="Claim"></td>
<td><a href="/"><button>no</button></button></td>
<td><a href="/"><button>Cancel</button></td>
{% endif %}