This commit is contained in:
les 2019-09-19 23:57:02 +02:00
parent adc4398206
commit c0a701a91d

View file

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