Commit graph

42 commits

Author SHA1 Message Date
Luca Palmieri
af9ea818a4 Simplify assertion 2023-02-19 18:38:12 +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 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
Luca Palmieri
2e08eefb54 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 16:55:53 +01:00
Luca Palmieri
48c9a5b39c Fix clippy lints. 2021-09-11 22:00:34 +02:00
Luca Palmieri
80a286113a Prevent user enumeration via timing attacks. 2021-08-30 18:27:56 +02:00
Luca Palmieri
5492da0b38 Add tests to highlight timing attack. 2021-08-30 17:57:35 +02:00
Luca Palmieri
e106c5c69a Tests pass. 2021-08-29 22:32:52 +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
984800f1a8 Random creds. 2021-08-14 23:01:18 +01:00
LukeMathWalker
1d0d1cc382 Extract basic credentials. 2021-08-14 22:57:03 +01:00
LukeMathWalker
03edd1e3b6 Missing auth test. 2021-08-14 19:35:46 +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
2e644faf9d Name helper mock. 2021-07-21 22:21:23 +01:00
LukeMathWalker
725280372d Set expectation on helper mock. 2021-07-21 21:59:32 +01:00
LukeMathWalker
9752cfc71e Use scoped mock. 2021-07-21 21:41:13 +01:00
LukeMathWalker
5299ef1f1d First integration tests for newsletter delivery. 2021-07-17 19:43:47 +01:00
LukeMathWalker
2b3dae3a6a Remove unnecessary log statements. 2021-05-12 22:12:41 +01:00
LukeMathWalker
faaffbbd98 Add error test. 2021-05-02 17:02:18 +01:00
LukeMathWalker
c14296a34d Return 500 if email delivery fails. 2021-05-01 16:51:55 +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
LukeMathWalker
9a3420073c Add new test. 2021-03-11 21:40:39 +00:00
LukeMathWalker
e820e37275 Refactor. 2021-03-11 21:14:29 +00:00
LukeMathWalker
b3ad683b9a Roudntrip test. 2021-03-11 09:24:57 +00:00
LukeMathWalker
967b16b19b Get a 404. 2021-03-09 22:40:14 +00:00
LukeMathWalker
01f1d8758e Red test. 2021-03-09 21:51:11 +00:00
LukeMathWalker
6e049bab9e Refactor. 2021-03-09 21:12:58 +00:00
LukeMathWalker
28fc5612ae Split test cases. 2021-03-08 23:02:45 +00:00
LukeMathWalker
bdddc29ac1 Confirmation link (static). 2021-03-08 22:40:58 +00:00
LukeMathWalker
2ac9ccbe97 Red test (confirmation link). 2021-03-08 22:10:23 +00:00
LukeMathWalker
f4b066b487 Red test. 2021-03-08 21:10:59 +00:00
LukeMathWalker
3359c5f921 Fix failing test. 2021-02-15 21:26:43 +00:00
LukeMathWalker
04c53d49da Extract helper method. 2021-02-14 17:07:31 +00:00
LukeMathWalker
e562b7df6f Add address. 2021-02-14 16:41:45 +00:00
LukeMathWalker
55da2e2e2e Share startup logic. 2021-02-14 16:27:04 +00:00
LukeMathWalker
beeeacdafb Split into multiple files. 2021-02-14 15:26:43 +00:00
LukeMathWalker
0344317f85 Split tests across files. 2021-02-14 12:24:50 +00:00
LukeMathWalker
e8ff7914c9 Restructure test suite - first step. 2021-02-14 12:12:07 +00:00