Skip to content

Commit

Permalink
Add and use connect-flash
Browse files Browse the repository at this point in the history
fixes #316
  • Loading branch information
Brutus5000 committed Jan 4, 2022
1 parent 91a9cd0 commit a0b4132
Show file tree
Hide file tree
Showing 3 changed files with 128 additions and 654 deletions.
2 changes: 2 additions & 0 deletions express.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ let middleware = require('./routes/middleware');
let bodyParser = require('body-parser');
let passport = require('passport');
let OidcStrategy = require('passport-openidconnect');
let flash = require('connect-flash');

const cors = require('cors');
const showdown = require('showdown');
Expand Down Expand Up @@ -56,6 +57,7 @@ app.use(require('express-session')({
//Authentication on pages
app.use(passport.initialize());
app.use(passport.session());
app.use(flash())
app.use(middleware.username);

//Initialize values for default configs
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"bootstrap-validator": "0.11.9",
"chart.js": "3.5.1",
"client-oauth2": "4.3.3",
"connect-flash": "^0.1.1",
"cors": "2.8.5",
"crypto-js": "4.1.1",
"dotenv": "10.0.0",
Expand Down
Loading

0 comments on commit a0b4132

Please sign in to comment.