login-plus 1.6.1 → 1.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/lib/login-plus.js +5 -3
- package/package.json +24 -24
package/README.md
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
# login-plus
|
|
2
2
|
login service for express
|
|
3
3
|
|
|
4
|
-

|
|
5
5
|
[](https://npmjs.org/package/login-plus)
|
|
6
6
|
[](https://npmjs.org/package/login-plus)
|
|
7
7
|
[](https://github.com/codenautas/login-plus/actions/workflows/node.js.yml)
|
|
8
8
|
[](https://coveralls.io/r/codenautas/login-plus)
|
|
9
|
-
[](https://github.com/codenautas/login-plus/pulls/app%2Fdependabot)
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
language: 
|
package/lib/login-plus.js
CHANGED
|
@@ -216,9 +216,11 @@ loginPlus.Manager.prototype.init = function init(app,opts){
|
|
|
216
216
|
}
|
|
217
217
|
});
|
|
218
218
|
app.get(opts.baseUrl+opts.logoutUrlPath, function(req,res,next){
|
|
219
|
-
req.logout()
|
|
220
|
-
|
|
221
|
-
|
|
219
|
+
req.logout(function(err) {
|
|
220
|
+
if (err) { return next(err); }
|
|
221
|
+
req.session.returnTo = null;
|
|
222
|
+
res.redirect(opts.redirBaseUrl+opts.logoutRedirect);
|
|
223
|
+
});
|
|
222
224
|
});
|
|
223
225
|
if(!opts.skipCheckAlreadyLoggedIn){
|
|
224
226
|
checkAlreadyLoggedIn(app, opts);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "login-plus",
|
|
3
3
|
"description": "login service for express",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.7.0",
|
|
5
5
|
"author": "Codenautas <codenautas@googlegroups.com>",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": "codenautas/login-plus",
|
|
@@ -21,41 +21,41 @@
|
|
|
21
21
|
}
|
|
22
22
|
],
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"connect-flash": "
|
|
25
|
-
"express-session": "^1.17.
|
|
26
|
-
"fs-extra": "^10.
|
|
27
|
-
"passport": "
|
|
24
|
+
"connect-flash": "^0.1.1",
|
|
25
|
+
"express-session": "^1.17.3",
|
|
26
|
+
"fs-extra": "^10.1.0",
|
|
27
|
+
"passport": "^0.6.0",
|
|
28
28
|
"passport-local": "^1.0.0",
|
|
29
29
|
"session-file-store": "^1.5.0",
|
|
30
|
-
"best-globals": "
|
|
31
|
-
"ensure-login": "
|
|
32
|
-
"mini-tools": "^1.11.
|
|
33
|
-
"regexplicit": "
|
|
30
|
+
"best-globals": "^1.0.3",
|
|
31
|
+
"ensure-login": "^0.1.4",
|
|
32
|
+
"mini-tools": "^1.11.2",
|
|
33
|
+
"regexplicit": "^0.1.3"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"body-parser": "^1.
|
|
36
|
+
"body-parser": "^1.20.0",
|
|
37
37
|
"concat-stream": "^2.0.0",
|
|
38
|
-
"cookie-parser": "^1.4.
|
|
39
|
-
"expect.js": "
|
|
40
|
-
"express": "^4.
|
|
38
|
+
"cookie-parser": "^1.4.6",
|
|
39
|
+
"expect.js": "^0.3.1",
|
|
40
|
+
"express": "^4.18.1",
|
|
41
41
|
"nyc": "^15.1.0",
|
|
42
42
|
"pug": "^3.0.2",
|
|
43
|
-
"mocha": "^
|
|
44
|
-
"php-session": "
|
|
43
|
+
"mocha": "^10.0.0",
|
|
44
|
+
"php-session": "^0.1.0",
|
|
45
45
|
"read-yaml-promise": "^1.0.2",
|
|
46
|
-
"sinon": "^
|
|
47
|
-
"stylus": "
|
|
48
|
-
"supertest": "^6.
|
|
49
|
-
"ajax-best-promise": "
|
|
50
|
-
"pg-promise-strict": "^1.2.
|
|
51
|
-
"self-explain": "
|
|
52
|
-
"serve-content": "
|
|
46
|
+
"sinon": "^14.0.0",
|
|
47
|
+
"stylus": "^0.58.1",
|
|
48
|
+
"supertest": "^6.2.4",
|
|
49
|
+
"ajax-best-promise": "^0.3.7",
|
|
50
|
+
"pg-promise-strict": "^1.2.6",
|
|
51
|
+
"self-explain": "^0.10.22",
|
|
52
|
+
"serve-content": "^0.3.17"
|
|
53
53
|
},
|
|
54
54
|
"optionalDependencies": {
|
|
55
|
-
"php-session": "
|
|
55
|
+
"php-session": "^0.1.0"
|
|
56
56
|
},
|
|
57
57
|
"engines": {
|
|
58
|
-
"node": ">=
|
|
58
|
+
"node": ">= 14"
|
|
59
59
|
},
|
|
60
60
|
"scripts": {
|
|
61
61
|
"test": "mocha --reporter spec --bail --check-leaks --globals __core-js_shared__ --exit test/test*.js",
|