Adjust User.lib.php

master
Skylar Ittner 5 years ago
parent 59136bd8eb
commit 42460d2165

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

Loading…
Cancel
Save