From 93e27ae3076c246fa99d592ce90301d41d0b5967 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Thu, 20 Feb 2020 19:31:23 +0100 Subject: [PATCH] make password write only --- Models/AccountMapper.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Models/AccountMapper.php b/Models/AccountMapper.php index 3b6e100..5fabaab 100644 --- a/Models/AccountMapper.php +++ b/Models/AccountMapper.php @@ -159,7 +159,7 @@ final class AccountMapper extends DataMapperAbstract $query = new Builder(self::$db); $result = $query->prefix(self::$db->getPrefix()) - ->select('account_id, account_login, account_password, account_password_temp, account_tries') + ->select('account_id', 'account_login', 'account_password', 'account_password_temp', 'account_tries') ->from('account') ->where('account_login', '=', $login) ->execute()->fetchAll(); @@ -171,7 +171,6 @@ final class AccountMapper extends DataMapperAbstract $result = $result[0]; // @todo: implement account tries - if ($result['account_tries'] <= 0) { return LoginReturnType::WRONG_INPUT_EXCEEDED; }