You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I see your point, the documentation does not specify how, but is quite easy, you can use a package like express-basic-auth
var express = require('express');
var app = express();
var basicAuth = require('express-basic-auth')
// ... your other express middleware like body-parser
var Agenda = require('agenda');
var Agendash = require('agendash');
var agenda = new Agenda({ db: { address: 'mongodb://127.0.0.1/agendaDb' } });
// or provide your own mongo client:
// var agenda = new Agenda({mongo: myMongoClient})
app.use('/dash',
basicAuth({
users: {
admin: "super-secure-password",
},
challenge: true,
}),
Agendash(agenda));
// ... your other routes
// ... start your server
There is no way to authenticate users to view dashboard
The text was updated successfully, but these errors were encountered: