Allow having multiple users for admin login.

* Use password hashes via bcrypt.
* Trying to reduce the risk of timing attacks against login.
This commit is contained in:
baldo 2022-07-07 13:10:57 +02:00
commit ad2db3427d
6 changed files with 317 additions and 41 deletions

View file

@ -14,8 +14,12 @@
"internal": {
"active": false,
"user": "admin",
"password": "secret"
"users": [
{
"user": "admin",
"passwordHash": "$2b$05$VPAg8XHOjhEXlY03SOe7huG1NE.UFvPLdukS0VMiolajdZjrdgj.W"
}
]
},
"email": {