[Web] Get all app passwd ids for a single user by using get/app-passwd/all/user@domain

This commit is contained in:
andryyy
2019-12-21 16:57:58 +01:00
parent b822818cee
commit 0b224d1e07
2 changed files with 15 additions and 4 deletions

View File

@@ -200,7 +200,7 @@ function app_passwd($_action, $_data = null) {
FROM `app_passwd`
WHERE `id` = :id
AND `mailbox` = :username");
$stmt->execute(array(':id' => $_data, ':username' => $username));
$stmt->execute(array(':id' => $_data['id'], ':username' => $username));
$app_passwd_data = $stmt->fetch(PDO::FETCH_ASSOC);
return $app_passwd_data;
break;