sismics / docs

Lightweight document management system packed with all the features you can expect from big expensive solutions
https://teedy.io
GNU General Public License v2.0
1.98k stars 489 forks source link

Possible to change password strength requirement? #689

Open WGandy opened 1 year ago

WGandy commented 1 year ago

I'm playing around with setting up a simple user to share with similar to the guest user but perhaps with some different capabilities and I'd like the password to be simple (demo:demo). How do I force teedy (self hosted) to accept a simple password?

vmario89 commented 1 year ago

the dirty way would be to create a password hash manually and put that into the database (postgresql). In https://github.com/sismics/docs/blob/master/docker-compose.yml there is some example how it looks like:

$$2a$$05$$PcMNUbJvsk7QHFSfEIDaIOjk1VI9/E7IPjTKx.jkjPxkx2EOKSoPS

using https://bcrypt-generator.com you can create such things

$2a$05$kHwuiR6XmWl0vDjcbXK8cup1UYRm5e0TY2ZfVDFgemvlxv1I1iG8S is an example output for demo (using 5 rounds)