Browse Source

Adjust User.lib.php

master
Skylar Ittner 11 months ago
parent
commit
42460d2165
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      lib/User.lib.php

+ 1
- 2
lib/User.lib.php View File

@@ -103,7 +103,6 @@ class User {
/**
* Check the given plaintext password against the stored hash.
* @param string $password
* @param bool $apppass Set to true to enforce app passwords when 2fa is on.
* @return bool
*/
function checkPassword(string $password): bool {
@@ -163,7 +162,7 @@ class User {
return true;
}

function check2fa(string $code): bool {
if (!$this->has2fa) {
return true;


Loading…
Cancel
Save