ghost 4.48.3 → 4.48.4

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.
@@ -29,26 +29,13 @@ module.exports = {
29
29
  })(req, res, next);
30
30
  },
31
31
  /**
32
- * block per user
33
- * username === email!
32
+ * block per ip
34
33
  */
35
34
  userLogin(req, res, next) {
36
35
  return spamPrevention.userLogin().getMiddleware({
37
36
  ignoreIP: false,
38
37
  key(_req, _res, _next) {
39
- if (_req.body.username) {
40
- return _next(`${_req.body.username}login`);
41
- }
42
-
43
- if (_req.body.authorizationCode) {
44
- return _next(`${_req.body.authorizationCode}login`);
45
- }
46
-
47
- if (_req.body.refresh_token) {
48
- return _next(`${_req.body.refresh_token}login`);
49
- }
50
-
51
- return _next();
38
+ return _next('user_login');
52
39
  }
53
40
  })(req, res, next);
54
41
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ghost",
3
- "version": "4.48.3",
3
+ "version": "4.48.4",
4
4
  "description": "The professional publishing platform",
5
5
  "author": "Ghost Foundation",
6
6
  "homepage": "https://ghost.org",