Added condition when login invalid

This commit is contained in:
2017-09-06 10:57:17 +07:00
parent 71fb5e4933
commit a34ce9d0eb
2 changed files with 6 additions and 6 deletions

View File

@@ -14,7 +14,7 @@ class Access extends \Core\Model
'salt char(23) NOT NULL',
'name varchar(50) NOT NULL',
'registered_at date NOT NULL DEFAULT CURRENT_TIMESTAMP',
'status tinyint NOT NULL DEFAULT 1',
'status tinyint NOT NULL DEFAULT 0',
'PRIMARY KEY (id)'
]
);
@@ -94,6 +94,7 @@ class Access extends \Core\Model
}
}
}
\Core\Session::flash('info', 'Invalid username/password');
return false;
} catch (PDOException $e) {
echo $e->getMessage();