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:
parent
6a5cf7a1fa
commit
d1106f53e0
@ -82,7 +82,7 @@ module.exports = {
|
|||||||
var username = getUsername(req.user);
|
var username = getUsername(req.user);
|
||||||
console.log('req.body:', req.body);
|
console.log('req.body:', req.body);
|
||||||
if ( req.body && req.body.name ) {
|
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) {
|
.then(function(name) {
|
||||||
console.log('generate key --- success name:', name);
|
console.log('generate key --- success name:', name);
|
||||||
res.json({
|
res.json({
|
||||||
|
Loading…
Reference in New Issue
Block a user