readthedocs-fr / bin-server

Un outil pour héberger des snippets de code et les partager via une URL.
https://bin.readthedocs.fr
MIT License
14 stars 15 forks source link

fix: force identifier length to IDENTSIZE #146

Closed Mesteery closed 3 years ago

Mesteery commented 3 years ago

Sometimes, the snippet identifier's length can be less than IDENTSIZE. For exemple, the identifier efy exists currently. This is normal since pronounceable_passwd generate identifier of length in range {3..IDENTSIZE}.

The identifier's length must always be IDENTSIZE. Now, the identifier's length is checked in new_id.

Also, added report route.