Commit Graph

32 Commits

Author SHA1 Message Date
Raphaël Thériault 5855965e24 Switch to BLAKE3, slightly better security, simplify with globals 2020-01-15 23:47:38 -05:00
Raphaël Thériault f1c40f4748 Always use multipart for files 2020-01-15 22:35:10 -05:00
Raphaël Thériault d6bc31d8ca Redesign UI 2020-01-15 18:17:12 -05:00
Raphaël Thériault fc79a7fa53 Fixed random id generation 2020-01-15 15:58:14 -05:00
Raphaël Thériault 8da71eb0df Make empty password hash static 2020-01-15 15:18:37 -05:00
Raphaël Thériault 11c5e2f384 Added POST routes for everything 2020-01-15 15:13:08 -05:00
Raphaël Thériault 35db5f64d4 Add random id generator 2020-01-15 14:48:02 -05:00
Raphaël Thériault f0714b2945 Start working on POST routes 2020-01-15 03:26:29 -05:00
Raphaël Thériault 2fbd134743 Backend support for code highlighting 2020-01-15 01:50:54 -05:00
Raphaël Thériault 07208152e3 Convert to std::future 2020-01-15 00:10:48 -05:00
Steven Joruk c2ab9514c3 Don't require authentication when the configured password is blank
Verify the user wants to enter an empty password.
2019-10-26 18:34:47 +01:00
Steven Joruk 08c86c892e Fix clippy warnings 2019-10-26 01:10:38 +01:00
Raphaël Thériault 0f28b15b1e Removed web subdir and moved contents to parent 2019-10-25 14:16:43 -04:00
Raphaël Thériault 464a5f12f8 Added meaningful error messages 2019-10-25 00:03:41 -04:00
Raphaël Thériault db0009bf6e Use basic auth everywhere 2019-10-24 23:51:52 -04:00
Raphaël Thériault 004d64467e Rename token to password 2019-10-24 23:39:34 -04:00
Raphaël Thériault 2888af37e4 Removed highlight field for tets 2019-10-24 23:32:23 -04:00
Raphaël Thériault 1b2c1b1199 Add user facing index page 2019-10-22 14:34:26 -04:00
Raphaël Thériault 29bb955757 Fixed prod builds 2019-10-21 17:22:42 -04:00
Raphaël Thériault 5562820c14 Fixed login/logout 2019-10-21 17:16:28 -04:00
Raphaël Thériault a1b0df5aaa Refactor auth function to use early returns 2019-10-21 17:02:07 -04:00
Raphaël Thériault 22453ae72f Login and logout routes 2019-10-21 16:59:13 -04:00
Raphaël Thériault c5df697eeb Return Results from helpers and then wrap them in leaf futures and not the opposite 2019-10-21 15:48:06 -04:00
Raphaël Thériault 967e8a30c6 Improve auth 2019-10-21 15:31:27 -04:00
Raphaël Thériault 3ddff326f0 Require auth for config route 2019-10-21 15:24:05 -04:00
Raphaël Thériault 7952615735 Added auth support to route handlers 2019-10-21 15:19:16 -04:00
Raphaël Thériault fb5f2b25a4 Reformat uses 2019-10-21 14:29:39 -04:00
Raphaël Thériault 26c73bc9f2 Use from_err instead of into in select handler creation macro 2019-10-21 14:18:49 -04:00
Raphaël Thériault 65b5f1d6bf Refactor route handlers to use futures combinators correctly instead of using weird macro tricks 2019-10-21 14:15:11 -04:00
Raphaël Thériault e51db219c9 Use absolute paths in macros 2019-10-21 13:18:32 -04:00
Raphaël Thériault 23d12a80fb Parse token hash at startup 2019-10-21 11:19:54 -04:00
Raphaël Thériault a5e2055ff7 Rename handlers to routes 2019-10-17 14:36:11 -04:00
Renamed from src/handlers.rs (Browse further)