|
@@ -24,7 +24,7 @@ class UserModel
|
|
|
*/
|
|
*/
|
|
|
public function validateLogin(string $username, string $password): ?array
|
|
public function validateLogin(string $username, string $password): ?array
|
|
|
{
|
|
{
|
|
|
- $stmt = $this->pdo->prepare("SELECT user_id, user_name, user_password, role_id FROM user WHERE user_name = :username AND user_flag = 'a'");
|
|
|
|
|
|
|
+ $stmt = $this->pdo->prepare("SELECT user_id, user_name, user_password, role_id, company_id FROM user WHERE user_name = :username AND user_flag = 'a'");
|
|
|
$stmt->execute(['username' => $username]);
|
|
$stmt->execute(['username' => $username]);
|
|
|
$user = $stmt->fetch(\PDO::FETCH_ASSOC);
|
|
$user = $stmt->fetch(\PDO::FETCH_ASSOC);
|
|
|
|
|
|