...
This commit is contained in:
parent
adc4398206
commit
c0a701a91d
1 changed files with 1 additions and 1 deletions
|
@ -238,7 +238,7 @@ const userController = {
|
|||
if (!req.body.password) { delete req.body.password }
|
||||
|
||||
// generate an rsa key in case not present
|
||||
if (!req.rsa) {
|
||||
if (!user.rsa) {
|
||||
const rsa = await generateKeyPair('rsa', {
|
||||
modulusLength: 4096,
|
||||
publicKeyEncoding: {
|
||||
|
|
Loading…
Reference in a new issue