integrate the user module
This commit is contained in:
@@ -102,7 +102,7 @@ class Config{
|
||||
* @type {string}
|
||||
* @memberof AccessManagementOptions
|
||||
*/
|
||||
salt : 'P@ssSal7y!!',
|
||||
salt : 'P@ssSal7y!N@tur3!',
|
||||
|
||||
/**
|
||||
* @class Cookie options, опции за бисквитките
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import express from 'express'
|
||||
import session from 'express-session';
|
||||
import passport from 'passport';
|
||||
import compression from 'compression';
|
||||
import MongoDBStore from 'connect-mongodb-session';
|
||||
import https from 'https';
|
||||
@@ -57,6 +58,9 @@ class WebServer {
|
||||
// next();
|
||||
// })
|
||||
|
||||
xapp.use(passport.initialize());
|
||||
xapp.use(passport.session());
|
||||
|
||||
xapp.use(express.json({ limit: '150mb' }));
|
||||
xapp.use(express.urlencoded({ extended: false, limit: '150mb' }));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user