From a7677d6c91154c312dffb520fde2b2d6f8ee4523 Mon Sep 17 00:00:00 2001 From: Sven Slootweg Date: Sat, 3 Nov 2012 00:08:12 +0100 Subject: [PATCH] Set all fields for new nodes correctly --- frontend/module.admin.nodes.add.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frontend/module.admin.nodes.add.php b/frontend/module.admin.nodes.add.php index 0c796d0..20329cf 100644 --- a/frontend/module.admin.nodes.add.php +++ b/frontend/module.admin.nodes.add.php @@ -70,6 +70,8 @@ if(isset($_POST['submit'])) $sNode->uHasCustomKey = isset($_POST['customkey']); $sNode->uPublicKey = $sPublicKeyName; $sNode->uPrivateKey = $sPrivateKeyName; + $sNode->uUser = "cvm"; + $sNode->uPort = 22; $sNode->InsertIntoDatabase(); redirect("/admin/nodes/");