feat(server): scaffolds invites and pwd reset modules

This commit is contained in:
Dimitrie Stefanescu
2021-03-03 18:04:33 +00:00
parent 4fb8e7841c
commit cfd58e3de5
5 changed files with 29 additions and 1 deletions
+1 -1
View File
@@ -11,7 +11,7 @@ const { scalarResolvers, scalarSchemas } = require( './core/graph/scalars' )
exports.init = async ( app ) => {
let dirs = fs.readdirSync( `${appRoot}/modules` )
let moduleDirs = [ './core', './auth', './apiexplorer' ]
let moduleDirs = [ './core', './auth', './apiexplorer', './emails', './pwdreset', './invites' ]
// Stage 1: initialise all modules
for ( let dir of moduleDirs ){
+11
View File
@@ -0,0 +1,11 @@
'use strict'
let debug = require( 'debug' )
const appRoot = require( 'app-root-path' )
exports.init = async ( app, options ) => {
debug( 'speckle:modules' )( '💌 Init invites module' )
}
exports.finalize = async () => {
}
+11
View File
@@ -0,0 +1,11 @@
'use strict'
let debug = require( 'debug' )
const appRoot = require( 'app-root-path' )
exports.init = async ( app, options ) => {
debug( 'speckle:modules' )( '♻️ Init pwd reset module' )
}
exports.finalize = async () => {
}
+5
View File
@@ -9046,6 +9046,11 @@
"process-on-spawn": "^1.0.0"
}
},
"nodemailer": {
"version": "6.5.0",
"resolved": "https://registry.npmjs.org/nodemailer/-/nodemailer-6.5.0.tgz",
"integrity": "sha512-Tm4RPrrIZbnqDKAvX+/4M+zovEReiKlEXWDzG4iwtpL9X34MJY+D5LnQPH/+eghe8DLlAVshHAJZAZWBGhkguw=="
},
"nodemon": {
"version": "2.0.6",
"resolved": "https://registry.npmjs.org/nodemon/-/nodemon-2.0.6.tgz",
+1
View File
@@ -50,6 +50,7 @@
"morgan": "^1.10.0",
"morgan-debug": "^2.0.0",
"node-machine-id": "^1.1.12",
"nodemailer": "^6.5.0",
"passport": "^0.4.1",
"passport-github2": "^0.1.12",
"passport-google-oauth2": "^0.2.0",