Commit Graph

80 Commits

Author SHA1 Message Date
Sami J. Mäkinen 403da19d0e default pool size2 2021-09-19 13:05:43 +03:00
Vamist 29949af2cb Replaced unwrap with unwrap_or_default 2021-02-01 23:45:29 +00:00
Vamist 8d77740588 Don't include file extension when searching for id 2021-02-01 23:30:01 +00:00
Raphaël Thériault fa02a9adb5 Add passwd launch option 2020-03-09 15:35:18 -04:00
Raphaël Thériault 93b211f743 ID conversion route 2020-03-09 15:22:13 -04:00
Raphaël Thériault ed5085ef75 Fix deletion routes 2020-03-09 15:07:56 -04:00
Raphaël Thériault a70cc866b3 0.3.0 2020-01-16 02:14:37 -05:00
Raphaël Thériault 3f390faba0 Fix delete behaviour 2020-01-16 01:27:50 -05:00
Raphaël Thériault 35ba76a28d Prevent overwrites from web UI (closes #12) 2020-01-16 00:56:36 -05:00
Raphaël Thériault 7dcf7c3746 Add init command (closes #7) 2020-01-16 00:40:03 -05:00
Raphaël Thériault 5bb1fc46e0 Use dialoguer for password input (closes #5) 2020-01-16 00:22:03 -05:00
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
Raphaël Thériault 4d835ed4c7
Merge pull request #15 from steven-joruk/no-password-no-auth
No password no auth
2019-10-27 18:54:59 -04:00
Raphaël Thériault 39c0d101c9
Fixed what I assume was a copy-pasting error 2019-10-27 18:52:33 -04:00
Raphaël Thériault ab3d325bb4
Slightly change error message formulation 2019-10-27 18:48:28 -04: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 49c1ad8232 Always generate missing config and password files 2019-10-26 14:12:04 +01:00
Steven Joruk 4012651741 Use the correct application directories for the platform
* Replace `let mut f = p; f.push(x)` with `let f = p.join(x)`
* Use `println!` for normal messages
2019-10-26 12:37:55 +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 212ac3617f Fix DB related bugs 2019-10-25 14:13:44 -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 a4ad899479 Added TOKEN to .env.example 2019-10-21 12:31:25 -04:00
Raphaël Thériault 23d12a80fb Parse token hash at startup 2019-10-21 11:19:54 -04:00
Raphaël Thériault c3aee8b422 Replace debug assertions with a dev feature 2019-10-21 10:57:14 -04:00