Skip to content

the email limit rate does not work #1952

@tigerInLuck

Description

@tigerInLuck

I am tried use the config to control the email login verification code:

AUTH_EMAIL_LIMIT=1
AUTH_EMAIL_INTERVAL=5m

but it does not work, it sent much more emails in 1 minute.

the test log show this:

curl -i "https://mydomain.com/comments/auth/email/login?site=main-site&address=nicuseen@gmail.com&user=nicuseen"

2025/09/15 00:57:12.166 [INFO]  GET - /auth/email/login?site=main-site&address=nicuseen@gmail.com&user=nicuseen - mydomain.com - dedf4aed18f8 - 200 (51) - 693.267461ms
2025/09/15 00:57:32.354 [INFO]  GET - /auth/email/login?site=main-site&address=nicuseen@gmail.com&user=nicuseen - mydomain.com - 6417dbdbd6b2 - 200 (51) - 560.921531ms
2025/09/15 00:57:39.387 [INFO]  GET - /auth/email/login?site=main-site&address=nicuseen@gmail.com&user=nicuseen - mydomain.com - 6417dbdbd6b2 - 200 (51) - 547.10292ms
2025/09/15 00:57:42.212 [INFO]  GET - /auth/email/login?site=main-site&address=nicuseen@gmail.com&user=nicuseen - mydomain.com - fe260457164c - 200 (51) - 642.363916ms
2025/09/15 00:57:45.626 [INFO]  GET - /auth/email/login?site=main-site&address=nicuseen@gmail.com&user=nicuseen - mydomain.com - bef9b3d7a4d6 - 200 (51) - 624.552409ms

and I have received 5 emails verification.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions