Adjust cards
This commit is contained in:
parent
8dd7ee6005
commit
f43f986e25
@ -16,6 +16,7 @@ $user = new User($_SESSION['uid']);
|
|||||||
<div class="card mb-4">
|
<div class="card mb-4">
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<h5 class="card-title"><i class="fas fa-key"></i> <?php $Strings->get("change password"); ?></h5>
|
<h5 class="card-title"><i class="fas fa-key"></i> <?php $Strings->get("change password"); ?></h5>
|
||||||
|
<hr />
|
||||||
<form action="action.php" method="POST">
|
<form action="action.php" method="POST">
|
||||||
<input type="password" class="form-control" name="oldpass" placeholder="<?php $Strings->get("current password"); ?>" />
|
<input type="password" class="form-control" name="oldpass" placeholder="<?php $Strings->get("current password"); ?>" />
|
||||||
<input type="password" class="form-control" name="newpass" placeholder="<?php $Strings->get("new password"); ?>" />
|
<input type="password" class="form-control" name="newpass" placeholder="<?php $Strings->get("new password"); ?>" />
|
||||||
@ -75,7 +76,7 @@ $user = new User($_SESSION['uid']);
|
|||||||
$codesecret = $totp->getSecret();
|
$codesecret = $totp->getSecret();
|
||||||
$chunk_secret = trim(chunk_split($codesecret, 4, ' '));
|
$chunk_secret = trim(chunk_split($codesecret, 4, ' '));
|
||||||
?>
|
?>
|
||||||
|
<hr />
|
||||||
<div class="card-text">
|
<div class="card-text">
|
||||||
<?php $Strings->get("scan 2fa qrcode") ?>
|
<?php $Strings->get("scan 2fa qrcode") ?>
|
||||||
</div>
|
</div>
|
||||||
|
@ -15,11 +15,11 @@ if (!empty($_GET['delsynccode'])) {
|
|||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<div class="row justify-content-center">
|
<div class="row justify-content-center">
|
||||||
<div class="col-sm-10 col-md-6 col-lg-5 col-xl-4">
|
<div class="col-sm-10 col-md-6 col-lg-4 col-xl-4">
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<h5 class="card-title"><i class="fas fa-mobile-alt"></i> <?php $Strings->get("sync mobile"); ?></h5>
|
<h5 class="card-title"><i class="fas fa-mobile-alt"></i> <?php $Strings->get("sync mobile"); ?></h5>
|
||||||
</div>
|
<hr />
|
||||||
<?php
|
<?php
|
||||||
if (!empty($_GET['mobilecode']) && $_GET['mobilecode'] == "generate") {
|
if (!empty($_GET['mobilecode']) && $_GET['mobilecode'] == "generate") {
|
||||||
if (!empty($_GET['showsynccode']) && $database->has("mobile_codes", ["AND" => ["uid" => $_SESSION['uid'], "codeid" => $_GET['showsynccode']]])) {
|
if (!empty($_GET['showsynccode']) && $database->has("mobile_codes", ["AND" => ["uid" => $_SESSION['uid'], "codeid" => $_GET['showsynccode']]])) {
|
||||||
@ -44,7 +44,6 @@ if (!empty($_GET['delsynccode'])) {
|
|||||||
$chunk_code = trim(chunk_split($code, 5, ' '));
|
$chunk_code = trim(chunk_split($code, 5, ' '));
|
||||||
$lang_done = $Strings->get("done adding sync code", false);
|
$lang_done = $Strings->get("done adding sync code", false);
|
||||||
?>
|
?>
|
||||||
<div class="card-body">
|
|
||||||
<p class="card-text"><?php $Strings->get("scan sync qrcode"); ?></p>
|
<p class="card-text"><?php $Strings->get("scan sync qrcode"); ?></p>
|
||||||
</div>
|
</div>
|
||||||
<img src="<?php echo $qrcode; ?>" class="card-img px-4" />
|
<img src="<?php echo $qrcode; ?>" class="card-img px-4" />
|
||||||
@ -72,7 +71,6 @@ if (!empty($_GET['delsynccode'])) {
|
|||||||
} else {
|
} else {
|
||||||
$activecodes = $database->select("mobile_codes", ["codeid", "code", "description"], ["uid" => $_SESSION['uid']]);
|
$activecodes = $database->select("mobile_codes", ["codeid", "code", "description"], ["uid" => $_SESSION['uid']]);
|
||||||
?>
|
?>
|
||||||
<div class="card-body">
|
|
||||||
<p class="card-text">
|
<p class="card-text">
|
||||||
<?php $Strings->get("sync explained"); ?>
|
<?php $Strings->get("sync explained"); ?>
|
||||||
</p>
|
</p>
|
||||||
@ -120,9 +118,10 @@ if (!empty($_GET['delsynccode'])) {
|
|||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
</div>
|
Loading…
x
Reference in New Issue
Block a user