aboutsummaryrefslogtreecommitdiff
path: root/login.php
diff options
context:
space:
mode:
authorCamil Staps2016-08-01 13:48:14 +0200
committerCamil Staps2016-08-01 13:53:12 +0200
commitefa2936ec538c236dcec71f419ad714524c7d2b9 (patch)
tree1d7e1903851fc4c37c72cf8ee8de006979bb8b4e /login.php
parentPaypal not on by default in braintree (diff)
Removed BusinessAdmin::get* methods, added Model::search and
Model::count
Diffstat (limited to 'login.php')
-rw-r--r--login.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/login.php b/login.php
index ec223a5..de93d07 100644
--- a/login.php
+++ b/login.php
@@ -37,7 +37,7 @@ if (isset($_GET['logout'])) {
if (!isset($_SESSION['login']) || $_SESSION['login'] === false) {
if (isset($_POST['username'])) {
- $users = BusinessAdmin::getUsers($_pdo, ['`username`=?'], [$_POST['username']]);
+ $users = User::search($_pdo, ['`username`=?'], [$_POST['username']]);
if (count($users) == 0) {
$_msg = "No user {$_POST['username']} found.<br/>";
} else {