Skip to content

Commit 89bbd14

Browse files
author
latham
committed
Missing ) caused the add client to not work. lathama
1 parent 79c69f1 commit 89bbd14

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

interface/web/client/client_edit.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ function onAfterInsert() {
161161
// Create the controlpaneluser for the client
162162
//Generate ssh-rsa-keys
163163
exec('ssh-keygen -t rsa -C '.$username.'-rsa-key-'.time().' -f /tmp/id_rsa -N ""');
164-
$app->db->query("UPDATE client SET created_at = ".time().", id_rsa = '".file_get_contents('/tmp/id_rsa')."', ssh_rsa = '".file_get_contents('/tmp/id_rsa.pub')."' WHERE client_id = ".$this->id;
164+
$app->db->query("UPDATE client SET created_at = ".time().", id_rsa = '".file_get_contents('/tmp/id_rsa')."', ssh_rsa = '".file_get_contents('/tmp/id_rsa.pub')."' WHERE client_id = ".$this->id);
165165
exec('rm -f /tmp/id_rsa /tmp/id_rsa.pub');
166166

167167
// Create the controlpaneluser for the client
@@ -248,4 +248,4 @@ function onAfterUpdate() {
248248
$page = new page_action;
249249
$page->onLoad();
250250

251-
?>
251+
?>

0 commit comments

Comments
 (0)