Commit graph

90 commits

Author SHA1 Message Date
Luca Palmieri
4e803865f3 Don't pin fake and quickcheck to older versions 2024-08-29 17:49:38 +02:00
Luca Palmieri
f70b2b9d00 Update dependencies 2024-08-29 16:46:59 +02:00
Luca Palmieri
68dcf2ea68 Formatting 2023-09-21 08:11:35 +02:00
Luca Palmieri
09d928a13a Update sqlx to 0.7 2023-09-20 09:53:47 +02:00
Luca Palmieri
d6f478d88b Formatting 2023-02-19 18:52:48 +00:00
Luca Palmieri
c3e0da643e Update outdated dependencies 2023-02-18 22:50:06 +00:00
Luca Palmieri
78a6a9de27 Update Cargo.lock and resolve cargo-audit report 2023-02-18 18:46:19 +00:00
Luca Palmieri
7cdcdb8e0d Fix CI 2022-10-01 18:43:04 +01:00
Luca P
ac8a60b4c5 Update all dependencies 2022-07-05 18:48:09 +01:00
Luca P
9e6339f729 Chapter 11: fault tolerant workflows. 2022-03-13 19:41:50 +00:00
Luca P
5512de52ca Use logout button instead of logout link 2022-03-13 15:40:30 +00:00
Luca P
fc36707be8 Solve reader exercise at the end of chapter 10 2022-03-13 15:26:57 +00:00
Luca P
df6bdea82b Last part of chapter 10 - sessions, seed users and change password form 2022-03-12 19:05:53 +00:00
Luca P
2b6c2c5bc0 Add login form with errors via HMAC-protected query parameters 2022-03-12 00:45:26 +00:00
Luca P
92558d41d9 Fix span name 2022-03-11 23:05:41 +00:00
Luca P
4c86217f2b Update to actix-web v4 2022-02-26 00:06:38 +00:00
Luca Palmieri
0168ad31bc Remove direct 'log' dependency 2022-01-02 16:52:21 +01:00
Luca Palmieri
674358415b Fix clippy errors 2021-12-28 17:51:36 +01:00
Luca Palmieri
93ed0c4150 Add secrecy 2021-12-27 15:10:20 +01:00
Luca Palmieri
1bf53dcf9a Update to latest version of actix-web, tracing-bunyan-formatter and tracing-subscriber. Use tokio macros instead of actix-web's macros. 2021-12-26 17:03:38 +01:00
LukeMathWalker
8266590ecd Lower sqlx's log level 2021-09-30 21:19:08 +01:00
Luca Palmieri
48c9a5b39c Fix clippy lints. 2021-09-11 22:00:34 +02:00
Luca Palmieri
50a5814eb2 Keep test suite fast by tuning timeout for tests. 2021-09-01 21:47:30 +02:00
Luca Palmieri
ed0f2fb593 Implement TryFrom instead of TryInto 2021-09-01 09:26:25 +02:00
Luca Palmieri
80a286113a Prevent user enumeration via timing attacks. 2021-08-30 18:27:56 +02:00
Luca Palmieri
00ab3e9252 Do not lose context when using spawn blocking. 2021-08-30 16:28:01 +02:00
Luca Palmieri
db0ebb4828 Extract db query into its own function. 2021-08-30 13:56:34 +02:00
Luca Palmieri
7d515138d5 Implement password hashing using Argon2, with PHC string format as storage encoding. 2021-08-29 22:09:43 +02:00
LukeMathWalker
312ee4aa89 Password hashing using SHA3-256. 2021-08-22 16:54:41 +01:00
LukeMathWalker
f78f25c358 Store user list, insecurely. 2021-08-15 13:26:16 +01:00
LukeMathWalker
1d0d1cc382 Extract basic credentials. 2021-08-14 22:57:03 +01:00
LukeMathWalker
9e75751b6b Remove Row. 2021-08-01 15:17:47 +01:00
LukeMathWalker
d54f33858d End of chapter. 2021-08-01 14:57:02 +01:00
LukeMathWalker
d7999e7241 Using two types to fetch. 2021-08-01 11:11:56 +01:00
LukeMathWalker
e9d4b14dcf Add error. 2021-07-28 09:35:34 +01:00
LukeMathWalker
5b87b2449d Add query. 2021-07-27 09:09:20 +01:00
LukeMathWalker
32c03a55c5 Refactor tests. 2021-07-25 17:37:00 +01:00
LukeMathWalker
83826d0166 Add handler. 2021-07-25 16:40:01 +01:00
LukeMathWalker
16ba42dccf Add handler. 2021-07-22 08:31:57 +01:00
LukeMathWalker
c1caed5404 Fix name conflict with name from the bunyan format. 2021-07-16 09:02:45 +01:00
LukeMathWalker
bc22cdca68 Update to actix-web 4.0.0-beta.8. 2021-07-09 08:42:43 +01:00
LukeMathWalker
7b64134fe7 Refactor error handling for confirm handler. 2021-05-12 22:33:43 +01:00
LukeMathWalker
2b3dae3a6a Remove unnecessary log statements. 2021-05-12 22:12:41 +01:00
LukeMathWalker
4e04ade2ed Use anyhow. 2021-05-12 09:08:38 +01:00
LukeMathWalker
c6e88e8f8e Use thiserror. 2021-05-10 09:57:49 +01:00
LukeMathWalker
f0aee87a00 Layering. 2021-05-09 18:36:31 +01:00
LukeMathWalker
c14296a34d Return 500 if email delivery fails. 2021-05-01 16:51:55 +01:00
LukeMathWalker
80ba8ace26 Update to latest actix-web. 2021-05-01 16:19:24 +01:00
LukeMathWalker
d05c9c9491 Use once_cell instead of lazy_static for tracing. Use custom sinks instead of filters to disable logging. 2021-05-01 15:54:39 +01:00
LukeMathWalker
b7ed1b4c28 cargo fmt. 2021-04-02 11:51:39 +01:00