szabodanika / microbin

A secure, configurable file-sharing and URL shortening web app written in Rust.
https://microbin.eu
BSD 3-Clause "New" or "Revised" License
2.51k stars 151 forks source link

Entering incorrect password when editing resets content/throws away changes #225

Open flamion opened 9 months ago

flamion commented 9 months ago

Describe the bug When editing a password protected paste the frontend throws away the changes when entering an incorrect password. To Reproduce Steps to reproduce the behavior:

  1. Create password protected paste
  2. Edit the paste content
  3. Enter incorrect password
  4. New content is gone

Expected behavior An error "Incorrect Password" is shown but the changes aren't lost

Desktop (please complete the following information):