Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Add rate-limiting when requesting email verification during profile update #4840

@Tia-ani

Description

@Tia-ani

Summary

Currently, users can trigger multiple email verification requests in rapid succession when changing their email via the profile edit page.

Problem

This could allow:

  • accidental double-click spam
  • abuse by automated scripts
  • unnecessary load on the email system

Proposed Solution

Implement a per-user rate limit using Django's cache.add() to ensure only one verification email can be triggered within 60 seconds.

Additional Notes

This is a follow-up improvement inspired by PR #4804 .

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions