1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Pass email data into the SSH Key generation API

This commit is contained in:
Hideki Nakamura 2017-12-15 21:41:14 +09:00
parent 6a5cf7a1fa
commit d1106f53e0

View File

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