feat(server): scaffolds invites and pwd reset modules
This commit is contained in:
@@ -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 ){
|
||||
|
||||
@@ -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 () => {
|
||||
|
||||
}
|
||||
@@ -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 () => {
|
||||
|
||||
}
|
||||
Generated
+5
@@ -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",
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user