Hash passwords when creating accounts

TL;DR:
- introduce the Cryptonite library
- Remove the redundant language extensions, imports, deps from Persistent
- Prefer NoContent return type for POST /accounts
- Define custom {To,From}JSON instances for Role
This commit is contained in:
William Carroll 2020-07-28 12:49:16 +01:00
parent bb36dd1f9e
commit b170be9375
4 changed files with 76 additions and 52 deletions

View file

@ -8,9 +8,7 @@ in pkgs.mkShell {
hpkgs.resource-pool
hpkgs.sqlite-simple
hpkgs.warp
hpkgs.persistent
hpkgs.persistent-sqlite
hpkgs.persistent-template
hpkgs.cryptonite
]))
];
}