Commit graph

72 commits

Author SHA1 Message Date
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
LukeMathWalker c58675a5a0 Use a SQL transaction. 2021-03-13 10:08:54 +00:00
LukeMathWalker b21e9cc99c Final push. 2021-03-11 23:11:38 +00:00
LukeMathWalker a8f1bc9024 Generate random token. 2021-03-11 22:07:17 +00:00
LukeMathWalker 9a3420073c Add new test. 2021-03-11 21:40:39 +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 a631932f05 Green test. 2021-03-09 21:19:16 +00:00
LukeMathWalker 123e7f139c Fix. 2021-03-08 23:02:39 +00:00
LukeMathWalker 3f3c73a93e Refactor subscribe. 2021-03-08 22:54:17 +00:00
LukeMathWalker bdddc29ac1 Confirmation link (static). 2021-03-08 22:40:58 +00:00
LukeMathWalker 310ffb01a5 Send static confirmation email. 2021-03-08 21:41:34 +00:00
LukeMathWalker d2fd3fe1fa Populate status column. 2021-03-07 18:53:45 +00:00
LukeMathWalker 3359c5f921 Fix failing test. 2021-02-15 21:26:43 +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 d5e09e849b Update to tokio 1. 2021-02-11 09:23:13 +00:00
LukeMathWalker c6d65cf113 Fix tests 2021-01-17 11:46:40 +00:00
LukeMathWalker b40748ef7b Refactor tests. 2021-01-17 00:43:04 +00:00