Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(core): init basic sentinel #4554

Merged
merged 3 commits into from
Sep 23, 2023
Merged

feat(core): init basic sentinel #4554

merged 3 commits into from
Sep 23, 2023

Conversation

gao-sun
Copy link
Member

@gao-sun gao-sun commented Sep 19, 2023

Summary

implement a basic sentinel that blocks a user after 5 failed attempts in 1 hour. the definition of "attempt" including both verification code and password submission.

Testing

unit tests

Checklist

  • .changeset (not this PR)
  • unit tests
  • integration tests (not this PR)
  • docs (not this PR)

@github-actions
Copy link

github-actions bot commented Sep 19, 2023

COMPARE TO master

Total Size Diff 📈 +9.59 KB

Diff by File
Name Diff
packages/core/src/sentinel/basic-sentinel.test.ts 📈 +3.87 KB
packages/core/src/sentinel/basic-sentinel.ts 📈 +5.02 KB
packages/core/src/test-utils/query.ts 📈 +566 Bytes
packages/schemas/src/types/sentinel.ts 📈 +149 Bytes

@gao-sun gao-sun marked this pull request as ready for review September 19, 2023 09:23
Base automatically changed from gao-init-sentinel to master September 22, 2023 06:03
@gao-sun gao-sun merged commit 9644308 into master Sep 23, 2023
25 checks passed
@gao-sun gao-sun deleted the gao-basic-sentinel branch September 23, 2023 15:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

3 participants