Fix error with no password
This commit is contained in:
parent
4923095ea1
commit
910b6c6cdb
4
ajax.php
4
ajax.php
@ -5,7 +5,7 @@ require_once 'config.php';
|
||||
require_once 'utils.php';
|
||||
require_once 'Net/SSH2.php';
|
||||
require_once 'Crypt/RSA.php';
|
||||
global $servers;
|
||||
global $servers, $config;
|
||||
$gitstatus = 'git fetch && git status';
|
||||
|
||||
if (!empty($_POST['section'])) {
|
||||
@ -33,7 +33,7 @@ if (!empty($_POST['action'])) {
|
||||
$session->login($config['user'], $key);
|
||||
}
|
||||
}
|
||||
if (!$session->isConnected()) {
|
||||
if (!$session->isConnected() && isset($config['pass'])) {
|
||||
$session->login($config['user'], $config['pass']);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user