Update auth.js
This commit is contained in:
parent
a2101cfbe9
commit
3153df2289
@ -6,8 +6,8 @@ module.exports = function (app, app_cfg, db, bcrypt, passport, LocalStrategy) {
|
||||
|
||||
app.use(session({
|
||||
store: new SQLiteStore({
|
||||
db: app_cfg.global.database,
|
||||
concurrentDB: true
|
||||
//db: app_cfg.global.database,
|
||||
//concurrentDB: true
|
||||
}),
|
||||
secret: app_cfg.global.sessionsecret,
|
||||
resave: false,
|
||||
@ -58,6 +58,8 @@ module.exports = function (app, app_cfg, db, bcrypt, passport, LocalStrategy) {
|
||||
res.redirect('/login')
|
||||
}
|
||||
|
||||
//TODO: ensureAuthenticated für admin-user erstellen
|
||||
|
||||
return{
|
||||
ensureAuthenticated: ensureAuthenticated
|
||||
};
|
||||
|
||||
Loading…
Reference in New Issue
Block a user