From e453303e1b9b7bc6da60f1e20acb2ad961ac6e67 Mon Sep 17 00:00:00 2001 From: kanoi Date: Fri, 22 Jan 2016 20:19:59 +1100 Subject: [PATCH] php - add info for apps to check device time --- pool/page_2fa.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pool/page_2fa.php b/pool/page_2fa.php index 6687846d..1e86e24d 100644 --- a/pool/page_2fa.php +++ b/pool/page_2fa.php @@ -11,6 +11,15 @@ function app_txt($ones) return $app; } # +function app_time() +{ + $app = "Apps to check that your device time is accurate:
"; + $app .= ""; + $app .= "Android: Google Play 'ClockSync' by Sergey Baranov
"; + $app .= "

"; + return $app; +} +# function set_2fa($data, $user, $tfa, $ans, $err, $msg) { $draw = false; @@ -121,6 +130,7 @@ function set_2fa($data, $user, $tfa, $ans, $err, $msg) $pg .= 'that you type into the "*2nd Authentication:" field on any page that has it.

'; $pg .= 'IMPORTANT: the TOTP algorithm uses the time on your device,
'; $pg .= "so it is important that your device's clock is accurate within a few seconds.

"; + $pg .= app_time(); $pg .= 'IMPORTANT: you enter the value from your App at the time you submit data.
'; $pg .= "The value is valid only once for a maximum of 30 seconds.
"; $pg .= "In both the Apps it has a 'dial' that shows the 30 seconds running out.
";