Login nur bei aktiviertem Nutzer

This commit is contained in:
Humorhenker 2019-07-15 21:50:04 +02:00
parent db919af915
commit 848dd88df4
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ try {
$user = $_POST['username']; $user = $_POST['username'];
$pw = $_POST['password']; $pw = $_POST['password'];
$abfrage = "SELECT `id`, `password`, `email`, `username`, `admin` FROM `virtual_users` WHERE `email` = :username"; $abfrage = "SELECT `id`, `password`, `email`, `username`, `admin` FROM `virtual_users` WHERE `email` = :username AND `active`='1'";
$sth = $dbh->prepare($abfrage); $sth = $dbh->prepare($abfrage);
$sth->execute(array(':username' => $user)); $sth->execute(array(':username' => $user));
$userdata = $sth->fetchAll(); $userdata = $sth->fetchAll();