From ca179b89eacb4ce96a192a967e6e8612856754ef Mon Sep 17 00:00:00 2001 From: Skylar Ittner Date: Fri, 14 Dec 2018 15:04:26 -0700 Subject: [PATCH] Add option to hide Station PIN settings, update branding --- langs/en/2fa.json | 2 +- langs/en/sync.json | 2 +- pages/security.php | 38 ++++++++++++++++++++++---------------- pages/sync.php | 2 +- settings.template.php | 3 +++ 5 files changed, 28 insertions(+), 19 deletions(-) diff --git a/langs/en/2fa.json b/langs/en/2fa.json index 818534b..e4f8c89 100644 --- a/langs/en/2fa.json +++ b/langs/en/2fa.json @@ -3,7 +3,7 @@ "2fa removed": "2-factor authentication disabled.", "2fa enabled": "2-factor authentication activated.", "remove 2fa": "Disable 2-factor authentication", - "2fa explained": "2-factor authentication adds more security to your account. You can use the Auth Keys (key icon) feature of the Netsyms Business Mobile app, or another TOTP-enabled app (Authy, FreeOTP, etc) on your smartphone. When you have the app installed, you can enable 2-factor authentication by clicking the button below and scanning a QR code with the app. Whenever you sign in in the future, you'll need to input a six-digit code from your phone into the login page when prompted. You can disable 2-factor authentication from this page if you change your mind.", + "2fa explained": "2-factor authentication adds more security to your account. You can use the Auth Keys (key icon) feature of the Netsyms mobile app, or another TOTP-enabled app (Authy, FreeOTP, etc) on your smartphone. When you have the app installed, you can enable 2-factor authentication by clicking the button below and scanning a QR code with the app. Whenever you sign in in the future, you'll need to input a six-digit code from your phone into the login page when prompted. You can disable 2-factor authentication from this page if you change your mind.", "2fa active": "2-factor authentication is active on your account. To remove 2fa, reset your authentication secret, or change to a new security device, click the button below.", "enable 2fa": "Enable 2-factor authentication", "scan 2fa qrcode": "Scan the QR Code with the authenticator app, or enter the information manually. Then type in the six-digit code the app gives you and press Finish Setup.", diff --git a/langs/en/sync.json b/langs/en/sync.json index 225f3a2..a487405 100644 --- a/langs/en/sync.json +++ b/langs/en/sync.json @@ -1,7 +1,7 @@ { "sync mobile": "Sync Mobile App", "scan sync qrcode": "Scan this code with the mobile app or enter the code manually.", - "sync explained": "Access your account and apps on the go. Use a sync code to securely connect your phone or tablet to AccountHub with the Netsyms Business mobile app.", + "sync explained": "Access your account and apps on the go. Use a sync code to securely connect your phone or tablet to {site_name} with the Netsyms mobile app.", "generate sync": "Create new sync code", "active sync codes": "Active codes", "no active codes": "No active codes.", diff --git a/pages/security.php b/pages/security.php index c4ec88a..0a7ee74 100644 --- a/pages/security.php +++ b/pages/security.php @@ -29,24 +29,30 @@ $user = new User($_SESSION['uid']); -
-
-
-
get("change pin"); ?>
-
- get("pin explanation"); ?> -
-
- " maxlength="8" pattern="[0-9]*" inputmode="numeric" /> - " maxlength="8" pattern="[0-9]*" inputmode="numeric" /> - - -
- -
+ +
+
+
+
get("change pin"); ?>
+
+ get("pin explanation"); ?> +
+
+ " maxlength="8" pattern="[0-9]*" inputmode="numeric" /> + " maxlength="8" pattern="[0-9]*" inputmode="numeric" /> + + +
+ +
+
-
+
diff --git a/pages/sync.php b/pages/sync.php index 6c2d58e..0bd1ed6 100644 --- a/pages/sync.php +++ b/pages/sync.php @@ -68,7 +68,7 @@ if (!empty($_GET['delsynccode'])) { $activecodes = $database->select("mobile_codes", ["codeid", "code", "description"], ["uid" => $_SESSION['uid']]); ?>

- get("sync explained"); ?> + build("sync explained", ["site_name" => SITE_TITLE]); ?>

" required /> diff --git a/settings.template.php b/settings.template.php index 3432b73..f919db8 100644 --- a/settings.template.php +++ b/settings.template.php @@ -131,6 +131,9 @@ define('EXTERNAL_APPS', [ ], ]); +// Show or hide the Station PIN setup option. +define("STATION_KIOSK", true); + // Used for notification timestamp display. define("DATETIME_FORMAT", "M j, g:i a"); define("TIME_FORMAT", "g:i");