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({