Fix undefined constant error - fixes #115

This commit is contained in:
Daniel Winzen
2021-04-28 18:16:08 +02:00
parent 4cc3a705cf
commit e96aa86cd1

View File

@ -10,7 +10,7 @@ if(empty($_SESSION['sftp_pass'])){
exit;
}
$ssh=ssh2_connect('127.0.0.1') or die ('No Connection to SFTP server!');
if(@!ssh2_auth_password($ssh, $user[system_account], $_SESSION['sftp_pass'])){
if(@!ssh2_auth_password($ssh, $user['system_account'], $_SESSION['sftp_pass'])){
send_login();
exit;
}