mirror of https://github.com/itflow-org/itflow
commit
82a123a63d
|
|
@ -44,7 +44,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
||||||
<h3 class="card-title mt-2"><i class="fa fa-fw fa-key mr-2"></i>Credentials</h3>
|
<h3 class="card-title mt-2"><i class="fa fa-fw fa-key mr-2"></i>Credentials</h3>
|
||||||
<div class="card-tools">
|
<div class="card-tools">
|
||||||
<div class="btn-group">
|
<div class="btn-group">
|
||||||
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#addLoginModal">
|
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#addLoginModal" <?php if (!isset($_COOKIE['user_encryption_session_key'])) { echo "disabled"; } ?>>
|
||||||
<i class="fas fa-plus mr-2"></i>New Credential
|
<i class="fas fa-plus mr-2"></i>New Credential
|
||||||
</button>
|
</button>
|
||||||
<button type="button" class="btn btn-primary dropdown-toggle dropdown-toggle-split" data-toggle="dropdown"></button>
|
<button type="button" class="btn btn-primary dropdown-toggle dropdown-toggle-split" data-toggle="dropdown"></button>
|
||||||
|
|
|
||||||
|
|
@ -145,7 +145,7 @@ if (isset($_POST['login'])) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Validate MFA code
|
// Validate MFA code
|
||||||
if (TokenAuth6238::verify($token, $current_code)) {
|
if (!empty($current_code) && TokenAuth6238::verify($token, $current_code)) {
|
||||||
$mfa_is_complete = true;
|
$mfa_is_complete = true;
|
||||||
$extended_log = 'with 2FA';
|
$extended_log = 'with 2FA';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue