Adjust cards

This commit is contained in:
Skylar Ittner 2018-09-22 21:08:28 -06:00
parent 8dd7ee6005
commit f43f986e25
2 changed files with 68 additions and 68 deletions

View File

@ -16,6 +16,7 @@ $user = new User($_SESSION['uid']);
<div class="card mb-4">
<div class="card-body">
<h5 class="card-title"><i class="fas fa-key"></i> <?php $Strings->get("change password"); ?></h5>
<hr />
<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="newpass" placeholder="<?php $Strings->get("new password"); ?>" />
@ -75,7 +76,7 @@ $user = new User($_SESSION['uid']);
$codesecret = $totp->getSecret();
$chunk_secret = trim(chunk_split($codesecret, 4, ' '));
?>
<hr />
<div class="card-text">
<?php $Strings->get("scan 2fa qrcode") ?>
</div>

View File

@ -15,11 +15,11 @@ if (!empty($_GET['delsynccode'])) {
}
?>
<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-body">
<h5 class="card-title"><i class="fas fa-mobile-alt"></i> <?php $Strings->get("sync mobile"); ?></h5>
</div>
<hr />
<?php
if (!empty($_GET['mobilecode']) && $_GET['mobilecode'] == "generate") {
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, ' '));
$lang_done = $Strings->get("done adding sync code", false);
?>
<div class="card-body">
<p class="card-text"><?php $Strings->get("scan sync qrcode"); ?></p>
</div>
<img src="<?php echo $qrcode; ?>" class="card-img px-4" />
@ -72,7 +71,6 @@ if (!empty($_GET['delsynccode'])) {
} else {
$activecodes = $database->select("mobile_codes", ["codeid", "code", "description"], ["uid" => $_SESSION['uid']]);
?>
<div class="card-body">
<p class="card-text">
<?php $Strings->get("sync explained"); ?>
</p>
@ -120,9 +118,10 @@ if (!empty($_GET['delsynccode'])) {
}
?>
</div>
</div>
<?php
}
?>
</div>
</div>
</div>