mirror of
https://github.com/Karaka-Management/oms-Admin.git
synced 2026-02-14 03:28:41 +00:00
make password write only
This commit is contained in:
parent
c7b98c0000
commit
93e27ae307
|
|
@ -159,7 +159,7 @@ final class AccountMapper extends DataMapperAbstract
|
||||||
|
|
||||||
$query = new Builder(self::$db);
|
$query = new Builder(self::$db);
|
||||||
$result = $query->prefix(self::$db->getPrefix())
|
$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')
|
->from('account')
|
||||||
->where('account_login', '=', $login)
|
->where('account_login', '=', $login)
|
||||||
->execute()->fetchAll();
|
->execute()->fetchAll();
|
||||||
|
|
@ -171,7 +171,6 @@ final class AccountMapper extends DataMapperAbstract
|
||||||
$result = $result[0];
|
$result = $result[0];
|
||||||
|
|
||||||
// @todo: implement account tries
|
// @todo: implement account tries
|
||||||
|
|
||||||
if ($result['account_tries'] <= 0) {
|
if ($result['account_tries'] <= 0) {
|
||||||
return LoginReturnType::WRONG_INPUT_EXCEEDED;
|
return LoginReturnType::WRONG_INPUT_EXCEEDED;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user