Add option to hide Station PIN settings, update branding
This commit is contained in:
parent
f1f682780c
commit
ca179b89ea
@ -3,7 +3,7 @@
|
|||||||
"2fa removed": "2-factor authentication disabled.",
|
"2fa removed": "2-factor authentication disabled.",
|
||||||
"2fa enabled": "2-factor authentication activated.",
|
"2fa enabled": "2-factor authentication activated.",
|
||||||
"remove 2fa": "Disable 2-factor authentication",
|
"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.",
|
"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",
|
"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.",
|
"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.",
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"sync mobile": "Sync Mobile App",
|
"sync mobile": "Sync Mobile App",
|
||||||
"scan sync qrcode": "Scan this code with the mobile app or enter the code manually.",
|
"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",
|
"generate sync": "Create new sync code",
|
||||||
"active sync codes": "Active codes",
|
"active sync codes": "Active codes",
|
||||||
"no active codes": "No active codes.",
|
"no active codes": "No active codes.",
|
||||||
|
@ -29,24 +29,30 @@ $user = new User($_SESSION['uid']);
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-sm-6 col-lg-4">
|
<?php
|
||||||
<div class="card mb-4">
|
if (STATION_KIOSK) {
|
||||||
<div class="card-body">
|
?>
|
||||||
<h5 class="card-title"><i class="fas fa-th"></i> <?php $Strings->get("change pin"); ?></h5>
|
<div class="col-sm-6 col-lg-4">
|
||||||
<hr />
|
<div class="card mb-4">
|
||||||
<?php $Strings->get("pin explanation"); ?>
|
<div class="card-body">
|
||||||
<hr />
|
<h5 class="card-title"><i class="fas fa-th"></i> <?php $Strings->get("change pin"); ?></h5>
|
||||||
<form action="action.php" method="POST">
|
<hr />
|
||||||
<input type="password" class="form-control" name="newpin" placeholder="<?php $Strings->get("new pin"); ?>" maxlength="8" pattern="[0-9]*" inputmode="numeric" />
|
<?php $Strings->get("pin explanation"); ?>
|
||||||
<input type="password" class="form-control" name="conpin" placeholder="<?php $Strings->get("confirm pin"); ?>" maxlength="8" pattern="[0-9]*" inputmode="numeric" />
|
<hr />
|
||||||
<input type="hidden" name="action" value="chpin" />
|
<form action="action.php" method="POST">
|
||||||
<input type="hidden" name="source" value="security" />
|
<input type="password" class="form-control" name="newpin" placeholder="<?php $Strings->get("new pin"); ?>" maxlength="8" pattern="[0-9]*" inputmode="numeric" />
|
||||||
<br />
|
<input type="password" class="form-control" name="conpin" placeholder="<?php $Strings->get("confirm pin"); ?>" maxlength="8" pattern="[0-9]*" inputmode="numeric" />
|
||||||
<button type="submit" class="btn btn-success btn-block"><?php $Strings->get("change pin"); ?></button>
|
<input type="hidden" name="action" value="chpin" />
|
||||||
</form>
|
<input type="hidden" name="source" value="security" />
|
||||||
|
<br />
|
||||||
|
<button type="submit" class="btn btn-success btn-block"><?php $Strings->get("change pin"); ?></button>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<?php
|
||||||
|
}
|
||||||
|
?>
|
||||||
<div class="col-sm-6 col-lg-4">
|
<div class="col-sm-6 col-lg-4">
|
||||||
<div class="card mb-4">
|
<div class="card mb-4">
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
|
@ -68,7 +68,7 @@ if (!empty($_GET['delsynccode'])) {
|
|||||||
$activecodes = $database->select("mobile_codes", ["codeid", "code", "description"], ["uid" => $_SESSION['uid']]);
|
$activecodes = $database->select("mobile_codes", ["codeid", "code", "description"], ["uid" => $_SESSION['uid']]);
|
||||||
?>
|
?>
|
||||||
<p class="card-text">
|
<p class="card-text">
|
||||||
<?php $Strings->get("sync explained"); ?>
|
<?php $Strings->build("sync explained", ["site_name" => SITE_TITLE]); ?>
|
||||||
</p>
|
</p>
|
||||||
<form action="app.php?page=sync&mobilecode=generate" method="POST">
|
<form action="app.php?page=sync&mobilecode=generate" method="POST">
|
||||||
<input type="text" name="desc" class="form-control" placeholder="<?php $Strings->get("sync code name"); ?>" required />
|
<input type="text" name="desc" class="form-control" placeholder="<?php $Strings->get("sync code name"); ?>" required />
|
||||||
|
@ -131,6 +131,9 @@ define('EXTERNAL_APPS', [
|
|||||||
],
|
],
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
// Show or hide the Station PIN setup option.
|
||||||
|
define("STATION_KIOSK", true);
|
||||||
|
|
||||||
// Used for notification timestamp display.
|
// Used for notification timestamp display.
|
||||||
define("DATETIME_FORMAT", "M j, g:i a");
|
define("DATETIME_FORMAT", "M j, g:i a");
|
||||||
define("TIME_FORMAT", "g:i");
|
define("TIME_FORMAT", "g:i");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user