Skip to content

Commit c08dcd4

Browse files
committed
feat: reset of throttle on successful verification
1 parent b7b3ba6 commit c08dcd4

3 files changed

Lines changed: 33 additions & 49 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
"ms-flakeless": "^4.1.1",
5555
"ms-mailer-client": "^8.0.1",
5656
"ms-mailer-templates": "^1.11.1",
57-
"ms-token": "^3.0.0",
57+
"ms-token": "^3.1.0",
5858
"otplib": "^11.0.1",
5959
"password-generator": "^2.2.0",
6060
"prom-client": "^11.5.3",

test/helpers/redis-sentinel/redis-sentinel.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ port 26379
77
dir "/data"
88
protected-mode no
99
sentinel config-epoch mservice 0
10-
sentinel leader-epoch mservice 6
11-
sentinel current-epoch 6
10+
sentinel leader-epoch mservice 13
11+
sentinel current-epoch 13

yarn.lock

Lines changed: 30 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@
502502
"@hapi/cryptiles" "4.x.x"
503503
"@hapi/hoek" "6.x.x"
504504

505-
"@hapi/joi@15.x.x", "@hapi/joi@^15.1.0":
505+
"@hapi/joi@15.x.x", "@hapi/joi@^15.0.0", "@hapi/joi@^15.1.0":
506506
version "15.1.0"
507507
resolved "https://registry.yarnpkg.com/@hapi/joi/-/joi-15.1.0.tgz#940cb749b5c55c26ab3b34ce362e82b6162c8e7a"
508508
integrity sha512-n6kaRQO8S+kepUTbXL9O/UOL788Odqs38/VOfoCrATDtTvyfiO3fgjlSRaNkHabpTLgM7qru9ifqXlXbXk8SeQ==
@@ -1392,7 +1392,7 @@ balanced-match@^1.0.0:
13921392
resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.0.tgz#89b4d199ab2bee49de164ea02b89ce462d71b767"
13931393
integrity sha1-ibTRmasr7kneFk6gK4nORi1xt2c=
13941394

1395-
base64-url@^2.2.0:
1395+
base64-url@^2.2.2:
13961396
version "2.2.2"
13971397
resolved "https://registry.yarnpkg.com/base64-url/-/base64-url-2.2.2.tgz#4f3f3937c590365bde6524b94b5788f3e3770555"
13981398
integrity sha512-JMAkNo3MJ7GG2CHPVMiGPrzGQizUcVE9qvCU6pxQln4aYZZgYM6BJHXbawDegSoryvsKGrK3FuBO9IuGWErRLQ==
@@ -1742,7 +1742,7 @@ chalk@2.4.2, chalk@^2.0.0, chalk@^2.0.1, chalk@^2.1.0, chalk@^2.3.2, chalk@^2.4.
17421742
escape-string-regexp "^1.0.5"
17431743
supports-color "^5.3.0"
17441744

1745-
chance@^1.0.16:
1745+
chance@^1.0.18:
17461746
version "1.0.18"
17471747
resolved "https://registry.yarnpkg.com/chance/-/chance-1.0.18.tgz#79788fe6fca4c338bf404321c347eecc80f969ee"
17481748
integrity sha512-g9YLQVHVZS/3F+zIicfB58vjcxopvYQRp7xHzvyDFDhXH1aRZI/JhwSAO0X5qYiQluoGnaNAU6wByD2KTxJN1A==
@@ -3826,11 +3826,6 @@ he@1.2.0:
38263826
resolved "https://registry.yarnpkg.com/he/-/he-1.2.0.tgz#84ae65fa7eafb165fddb61566ae14baf05664f0f"
38273827
integrity sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==
38283828

3829-
hoek@6.x.x:
3830-
version "6.1.3"
3831-
resolved "https://registry.yarnpkg.com/hoek/-/hoek-6.1.3.tgz#73b7d33952e01fe27a38b0457294b79dd8da242c"
3832-
integrity sha512-YXXAAhmF9zpQbC7LEcREFtXfGq5K1fmd+4PHkBq8NUqmzW3G+Dq10bI/i0KucLRwss3YYFQ0fSfoxBZYiGUqtQ==
3833-
38343829
hook-std@^1.1.0:
38353830
version "1.2.0"
38363831
resolved "https://registry.yarnpkg.com/hook-std/-/hook-std-1.2.0.tgz#b37d533ea5f40068fe368cb4d022ee1992588c27"
@@ -4390,13 +4385,6 @@ isarray@1.0.0, isarray@^1.0.0, isarray@~1.0.0:
43904385
resolved "https://registry.yarnpkg.com/isarray/-/isarray-1.0.0.tgz#bb935d48582cba168c06834957a54a3e07124f11"
43914386
integrity sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=
43924387

4393-
isemail@3.x.x:
4394-
version "3.2.0"
4395-
resolved "https://registry.yarnpkg.com/isemail/-/isemail-3.2.0.tgz#59310a021931a9fb06bbb51e155ce0b3f236832c"
4396-
integrity sha512-zKqkK+O+dGqevc93KNsbZ/TqTUFd46MwWjYOoMrjIMZ51eU7DtQG3Wmd9SQQT7i7RVnuTPEiYEWHU3MSbxC1Tg==
4397-
dependencies:
4398-
punycode "2.x.x"
4399-
44004388
isexe@^2.0.0:
44014389
version "2.0.0"
44024390
resolved "https://registry.yarnpkg.com/isexe/-/isexe-2.0.0.tgz#e8fbf374dc556ff8947a10dcb0572d633f2cfa10"
@@ -4497,15 +4485,6 @@ jmespath@^0.15.0:
44974485
resolved "https://registry.yarnpkg.com/jmespath/-/jmespath-0.15.0.tgz#a3f222a9aae9f966f5d27c796510e28091764217"
44984486
integrity sha1-o/Iiqarp+Wb10nx5ZRDigJF2Qhc=
44994487

4500-
joi@^14.0.6:
4501-
version "14.3.1"
4502-
resolved "https://registry.yarnpkg.com/joi/-/joi-14.3.1.tgz#164a262ec0b855466e0c35eea2a885ae8b6c703c"
4503-
integrity sha512-LQDdM+pkOrpAn4Lp+neNIFV3axv1Vna3j38bisbQhETPMANYRbFJFUyOZcOClYvM/hppMhGWuKSFEK9vjrB+bQ==
4504-
dependencies:
4505-
hoek "6.x.x"
4506-
isemail "3.x.x"
4507-
topo "3.x.x"
4508-
45094488
js-tokens@^4.0.0:
45104489
version "4.0.0"
45114490
resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-4.0.0.tgz#19203fb59991df98e3a287050d4647cdeaf32499"
@@ -4959,6 +4938,11 @@ lodash.clonedeep@^4.5.0, lodash.clonedeep@~4.5.0:
49594938
resolved "https://registry.yarnpkg.com/lodash.clonedeep/-/lodash.clonedeep-4.5.0.tgz#e23f3f9c4f8fbdde872529c1071857a086e5ccef"
49604939
integrity sha1-4j8/nE+Pvd6HJSnBBxhXoIblzO8=
49614940

4941+
lodash.compact@^3.0.1:
4942+
version "3.0.1"
4943+
resolved "https://registry.yarnpkg.com/lodash.compact/-/lodash.compact-3.0.1.tgz#540ce3837745975807471e16b4a2ba21e7256ca5"
4944+
integrity sha1-VAzjg3dFl1gHRx4WtKK6IeclbKU=
4945+
49624946
lodash.defaults@^4.2.0:
49634947
version "4.2.0"
49644948
resolved "https://registry.yarnpkg.com/lodash.defaults/-/lodash.defaults-4.2.0.tgz#d09178716ffea4dde9e5fb7b37f6f0802274580c"
@@ -5029,6 +5013,11 @@ lodash.mergewith@^4.6.1:
50295013
resolved "https://registry.yarnpkg.com/lodash.mergewith/-/lodash.mergewith-4.6.1.tgz#639057e726c3afbdb3e7d42741caa8d6e4335927"
50305014
integrity sha512-eWw5r+PYICtEBgrBE5hhlT6aAa75f411bgDz/ZL2KZqYV03USvucsxcHUIlGTDTECs1eunpI7HOV7U+WLDvNdQ==
50315015

5016+
lodash.omit@^4.5.0:
5017+
version "4.5.0"
5018+
resolved "https://registry.yarnpkg.com/lodash.omit/-/lodash.omit-4.5.0.tgz#6eb19ae5a1ee1dd9df0b969e66ce0b7fa30b5e60"
5019+
integrity sha1-brGa5aHuHdnfC5aeZs4Lf6MLXmA=
5020+
50325021
lodash.once@^4.0.0:
50335022
version "4.1.1"
50345023
resolved "https://registry.yarnpkg.com/lodash.once/-/lodash.once-4.1.1.tgz#0dd3971213c7c56df880977d504c88fb471a97ac"
@@ -5556,17 +5545,19 @@ ms-mailer-templates@^1.11.1:
55565545
common-errors "^1.0.5"
55575546
handlebars "^4.1.1"
55585547

5559-
ms-token@^3.0.0:
5560-
version "3.0.0"
5561-
resolved "https://registry.yarnpkg.com/ms-token/-/ms-token-3.0.0.tgz#32cefc14023457dcdca1418f3021bab9c21fc36d"
5562-
integrity sha512-7uIiO6cTwc7Bhqh+gPR5oO12J2UIPejtjDLa+CqFVYaQPiuYiOHaO/eVmlhsVU6/13Y8MWVIaovHNMleSO8i+A==
5548+
ms-token@^3.1.0:
5549+
version "3.1.0"
5550+
resolved "https://registry.yarnpkg.com/ms-token/-/ms-token-3.1.0.tgz#bb68de466401fa6724ec13b5419689a4094730e9"
5551+
integrity sha512-kPFMj5u7Vmz/9WTesxQL/8a+qQkOFjlg7Fo54cIwUFlQ+ZToqE02OPHCNcN92VBc8RaGu1pxShqfgBdxG4Oenw==
55635552
dependencies:
5564-
base64-url "^2.2.0"
5565-
chance "^1.0.16"
5566-
glob "^7.1.3"
5567-
is "^3.2.1"
5568-
joi "^14.0.6"
5569-
lodash "^4.17.11"
5553+
"@hapi/joi" "^15.0.0"
5554+
base64-url "^2.2.2"
5555+
chance "^1.0.18"
5556+
get-value "^3.0.1"
5557+
glob "^7.1.4"
5558+
is "^3.3.0"
5559+
lodash.compact "^3.0.1"
5560+
lodash.omit "^4.5.0"
55705561
uuid "^3.3.2"
55715562

55725563
ms@2.0.0:
@@ -6830,16 +6821,16 @@ pumpify@^1.3.3:
68306821
inherits "^2.0.3"
68316822
pump "^2.0.0"
68326823

6833-
punycode@2.x.x, punycode@^2.1.0, punycode@^2.1.1:
6834-
version "2.1.1"
6835-
resolved "https://registry.yarnpkg.com/punycode/-/punycode-2.1.1.tgz#b58b010ac40c22c5657616c8d2c2c02c7bf479ec"
6836-
integrity sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==
6837-
68386824
punycode@^1.4.1:
68396825
version "1.4.1"
68406826
resolved "https://registry.yarnpkg.com/punycode/-/punycode-1.4.1.tgz#c0d5a63b2718800ad8e1eb0fa5269c84dd41845e"
68416827
integrity sha1-wNWmOycYgArY4esPpSachN1BhF4=
68426828

6829+
punycode@^2.1.0, punycode@^2.1.1:
6830+
version "2.1.1"
6831+
resolved "https://registry.yarnpkg.com/punycode/-/punycode-2.1.1.tgz#b58b010ac40c22c5657616c8d2c2c02c7bf479ec"
6832+
integrity sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==
6833+
68436834
puppeteer@1.18.1:
68446835
version "1.18.1"
68456836
resolved "https://registry.yarnpkg.com/puppeteer/-/puppeteer-1.18.1.tgz#4a66f3bdab01115ededf70443ec904c99917a815"
@@ -8160,13 +8151,6 @@ to-regex@^3.0.1, to-regex@^3.0.2:
81608151
regex-not "^1.0.2"
81618152
safe-regex "^1.1.0"
81628153

8163-
topo@3.x.x:
8164-
version "3.0.3"
8165-
resolved "https://registry.yarnpkg.com/topo/-/topo-3.0.3.tgz#d5a67fb2e69307ebeeb08402ec2a2a6f5f7ad95c"
8166-
integrity sha512-IgpPtvD4kjrJ7CRA3ov2FhWQADwv+Tdqbsf1ZnPUSAtCJ9e1Z44MmoSGDXGk4IppoZA7jd/QRkNddlLJWlUZsQ==
8167-
dependencies:
8168-
hoek "6.x.x"
8169-
81708154
tough-cookie@^2.3.3:
81718155
version "2.5.0"
81728156
resolved "https://registry.yarnpkg.com/tough-cookie/-/tough-cookie-2.5.0.tgz#cd9fb2a0aa1d5a12b473bd9fb96fa3dcff65ade2"

0 commit comments

Comments
 (0)