Skip to content

Commit

Permalink
Agrego skipCheckAlreadyLoggedIn
Browse files Browse the repository at this point in the history
  • Loading branch information
emilioplatzer committed Nov 22, 2017
1 parent 6bf64c5 commit 3b35572
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion lib/login-plus.js
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,9 @@ loginPlus.Manager.prototype.init = function init(app,opts){
req.logout();
next();
});
checkAlreadyLoggedIn(app, opts);
if(!opts.skipCheckAlreadyLoggedIn){
checkAlreadyLoggedIn(app, opts);
}
app.get(opts.baseUrl+opts.loginUrlPath, opts.loginPageServe);
app.post(opts.baseUrl+opts.loginUrlPath,
this.passport.authenticate('local', {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "login-plus",
"description": "login service for express",
"version": "1.4.1",
"version": "1.4.2",
"author": "Codenautas <codenautas@googlegroups.com>",
"license": "MIT",
"repository": "codenautas/login-plus",
Expand Down

0 comments on commit 3b35572

Please sign in to comment.