mirror of
https://github.com/better-auth/better-auth.git
synced 2026-07-30 17:12:35 -05:00
fix: add custom rate-limiting rule for change password and email
This commit is contained in:
@@ -176,7 +176,12 @@ function getDefaultSpecialRules() {
|
||||
const specialRules = [
|
||||
{
|
||||
pathMatcher(path: string) {
|
||||
return path.startsWith("/sign-in") || path.startsWith("/sign-up");
|
||||
return (
|
||||
path.startsWith("/sign-in") ||
|
||||
path.startsWith("/sign-up") ||
|
||||
path.startsWith("/change-password") ||
|
||||
path.startsWith("/change-email")
|
||||
);
|
||||
},
|
||||
window: 10,
|
||||
max: 3,
|
||||
|
||||
Reference in New Issue
Block a user