From b56b8fca929358bc10bead4d2cefefe3dfe46a29 Mon Sep 17 00:00:00 2001 From: Wojtek Porczyk Date: Sun, 21 Aug 2022 19:00:29 +0200 Subject: [PATCH] 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 Change-Id: Ieee74d09114e6f0479f44429d9828e47c95eb6bd Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1362 Reviewed-by: q3k --- hswaw/checkinator/at/templates/claim.html | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/hswaw/checkinator/at/templates/claim.html b/hswaw/checkinator/at/templates/claim.html index 05f2e0b5..aedea84b 100644 --- a/hswaw/checkinator/at/templates/claim.html +++ b/hswaw/checkinator/at/templates/claim.html @@ -4,7 +4,11 @@ {% if not hwaddr %}

Unknown MAC. Are you sure you're in the hackerspace?

{% else %} - You are about to claim {{ hwaddr }} as {{ current_user.id }}. Do you wish to continue? +

+ You are about to claim {{ hwaddr }} as + {{ current_user.id }}. Please make sure you have MAC + address randomisation configured per-network or turned off entirely. +

@@ -12,9 +16,9 @@ - + - +
{% endif %}