pglombardo / PasswordPusher

🔐 Securely share sensitive information with automatic expiration & deletion after a set number of views or duration. Track who, what and when with full audit logs.
https://docs.pwpush.com
Apache License 2.0
2.08k stars 359 forks source link

Double-clicking the link in preview page burns a view #2482

Open pbirkants opened 2 months ago

pbirkants commented 2 months ago

🚀 Feature Request

When using preview page, the link "Click Here to Proceed" should have "double-submit" protection.

🔈 Motivation

Currently it's easy to burn a view by double-clicking the link quick enough. The browser cancels the first request and sends another, but by that time it might already be processed by server. The time window for double-clicking is greatly increased if the user has a slow connection. While it's surely not viable to prevent this completely, blocking or removing the link element with JS would help reduce accidental burning of views. Possibly also relevant to #2225

github-actions[bot] commented 2 months ago

Hello @pbirkants, thanks for contributing to the Password Pusher community! We will respond as soon as possible.

pglombardo commented 2 months ago

The ""double-submit" protection" is a good idea. I'll see if I can add this soon. Thanks for reporting!