Skip to content

Commit

Permalink
Merge pull request #1001 from itflow-org/cred-fix
Browse files Browse the repository at this point in the history
Bugfix: credentials
  • Loading branch information
johnnyq authored Aug 19, 2024
2 parents 0e8e841 + 3f772f5 commit 82a123a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion client_logins.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
<h3 class="card-title mt-2"><i class="fa fa-fw fa-key mr-2"></i>Credentials</h3>
<div class="card-tools">
<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
</button>
<button type="button" class="btn btn-primary dropdown-toggle dropdown-toggle-split" data-toggle="dropdown"></button>
Expand Down
2 changes: 1 addition & 1 deletion login.php
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@
}

// Validate MFA code
if (TokenAuth6238::verify($token, $current_code)) {
if (!empty($current_code) && TokenAuth6238::verify($token, $current_code)) {
$mfa_is_complete = true;
$extended_log = 'with 2FA';
}
Expand Down

0 comments on commit 82a123a

Please sign in to comment.