Skip to content

Commit 2e95772

Browse files
Update lib/HTTP.php
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Sebastian Sterk <7263970+sebastiansterk@users.noreply.github.com>
1 parent 3379b21 commit 2e95772

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/HTTP.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ private function hashPassword($password) {
103103
* @return string|false The username on success, false on failure
104104
*/
105105
public function checkPassword($uid, $password) {
106-
if (isset($uid) && isset($password)) {
106+
if (!empty($uid) && !empty($password)) {
107107
$authenticationStatus = $this->sendUserData($uid, $password);
108108
if ($authenticationStatus) {
109109
$uid = mb_strtolower($uid);

0 commit comments

Comments
 (0)