Skip to content

prevent users to spam otp #26

@mssayari

Description

@mssayari

Hi,

I'm using this package for 2 weeks with SMS channel. I noticed that users are spamming by only refreshing otp protected routes.
I could prevent this by extending middleware and putting a simple condition with otp_last_sent timestamp in session and a simple timer in otp.create view to show that they can only request for new code after 1 minute.

I think you can implement this with dynamic time in config file in future releases.

Metadata

Metadata

Assignees

Labels

featThis issue is about a new featuregood first issueGood for newcomers

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions