Skip to content

Commit

Permalink
fix: run tests
Browse files Browse the repository at this point in the history
  • Loading branch information
deepakrkris committed Mar 28, 2020
1 parent e890ee1 commit 175eb29
Show file tree
Hide file tree
Showing 25 changed files with 265 additions and 6,441 deletions.
12 changes: 6 additions & 6 deletions examples/passport-oauth2-login/client/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,39 +14,39 @@ const app = (module.exports = express());
app.set('views', path.join(__dirname, 'views'));
app.set('view engine', 'jade');

app.get('/', function(req, res, next) {
app.get('/', function (req, res, next) {
res.render('pages/index', {user: req.user, url: req.url});
});

app.get('/auth/account', ensureLoggedIn('/login'), function(req, res, next) {
app.get('/auth/account', ensureLoggedIn('/login'), function (req, res, next) {
res.render('pages/loginProfiles', {
user: req.user,
url: req.url,
});
});

app.get('/local', function(req, res, next) {
app.get('/local', function (req, res, next) {
res.render('pages/local', {
user: req.user,
url: req.url,
});
});

app.get('/ldap', function(req, res, next) {
app.get('/ldap', function (req, res, next) {
res.render('pages/ldap', {
user: req.user,
url: req.url,
});
});

app.get('/signup', function(req, res, next) {
app.get('/signup', function (req, res, next) {
res.render('pages/signup', {
user: req.user,
url: req.url,
});
});

app.get('/login', function(req, res, next) {
app.get('/login', function (req, res, next) {
res.render('pages/login', {
user: req.user,
url: req.url,
Expand Down
6 changes: 3 additions & 3 deletions examples/passport-oauth2-login/client/views/pages/login.jade
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ block content
li
a.btn.btn-primary(href='/ldap') Login with ldap account
li
a.btn.btn-primary(href="/auth/facebook") Login with Facebook
a.btn.btn-primary(href="/auth/thirdparty?service=facebook") Login with Facebook
li
a.btn.btn-primary(href="/auth/google") Login with Google
a.btn.btn-primary(href="/auth/thirdparty?service=google") Login with Google
li
a.btn.btn-primary(href="/auth/twitter") Login with Twitter
a.btn.btn-primary(href="/auth/thirdparty?service=twitter") Login with Twitter
2 changes: 1 addition & 1 deletion examples/passport-oauth2-login/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ if (require.main === module) {
},
},
};
application.main(config).catch(err => {
application.main(config).catch((err) => {
console.error('Cannot start the application.', err);
process.exit(1);
});
Expand Down
Loading

0 comments on commit 175eb29

Please sign in to comment.