From d1106f53e01253fdaeb08089d710c2cd873fc830 Mon Sep 17 00:00:00 2001 From: Hideki Nakamura Date: Fri, 15 Dec 2017 21:41:14 +0900 Subject: [PATCH] Pass email data into the SSH Key generation API --- red/api/editor/sshkeys.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/red/api/editor/sshkeys.js b/red/api/editor/sshkeys.js index 5a9506555..a7b3a9181 100644 --- a/red/api/editor/sshkeys.js +++ b/red/api/editor/sshkeys.js @@ -82,7 +82,7 @@ module.exports = { var username = getUsername(req.user); console.log('req.body:', req.body); if ( req.body && req.body.name ) { - runtime.storage.sshkeys.generateSSHKey(username, "", req.body.name, req.body) + runtime.storage.sshkeys.generateSSHKey(username, req.body.email || "", req.body.name, req.body) .then(function(name) { console.log('generate key --- success name:', name); res.json({