Commit graph

52 commits

Author SHA1 Message Date
b12fcef1b3 Add optional word 2023-02-26 14:07:06 +01:00
423dcb6914 Trim form strings by default 2023-02-26 12:32:06 +01:00
411f4ee792 Fix typos 2023-02-25 21:35:20 +01:00
204d8d7999 Send an error on bad request 2023-02-25 21:33:45 +01:00
d9195ef0af Remove unused imports 2023-02-25 21:32:20 +01:00
b07b45fb14 Update deps 2023-02-25 21:25:45 +01:00
064935feb1 Rename id to key and refactor from_map 2023-02-25 21:14:58 +01:00
29b5f5fc63 Thanks clippy :) 2023-02-25 20:51:36 +01:00
c0d8eddd30 Working field config!!! 2023-02-25 18:08:21 +01:00
43d4ec3b59 Test email connection with early intialized logger 2023-02-24 02:56:08 +01:00
9af1d7b665 Done documentation 2023-02-24 01:19:07 +01:00
90bce828ff Document routers 2023-02-24 01:13:02 +01:00
0e26e36e46 Remove failed_submission and unneeded async 2023-02-23 21:08:36 +01:00
aef4a809d6 Remove was_validated from params 2023-02-23 20:22:59 +01:00
45f664bf9c Use persistant_fields 2023-02-23 20:19:20 +01:00
2143da1766 Document mailer and use async lettre 2023-02-23 17:34:22 +01:00
164094c42f Document logging 2023-02-23 17:17:25 +01:00
17d1606ae6 Document forms 2023-02-23 17:13:52 +01:00
95c71a2ed5 Document errors 2023-02-23 17:12:59 +01:00
7992857e5f Document config 2023-02-23 17:10:24 +01:00
a0c2edba56 Refactor captcha solutions and AppState 2023-02-23 16:55:27 +01:00
db0ad404a1 Use Mutex instead of RwLock and prevent unneeded allocation on answer check 2023-02-23 15:45:20 +01:00
0b9283a69b Use ? 2023-02-23 15:37:18 +01:00
e6b7c549e3 Simplify config and setup logging well 2023-02-23 03:22:31 +01:00
b7a3117ad8 Use Arc::clone instead of clone 2023-02-23 01:53:36 +01:00
230b4a6ba9 Remove usage of mem::take 2023-02-23 01:52:50 +01:00
5acfa4556f Use ServeDir 2023-02-23 00:42:08 +01:00
99372acf7d Use single thread 2023-02-23 00:41:26 +01:00
8efb9bcdde Use only needed tokio features 2023-01-12 20:55:56 +01:00
7abe487918 Use RwLock 2022-12-28 14:36:30 +01:00
adcc18f5a5 Add lang 2022-12-17 18:37:04 +01:00
2c571ae3b4 Remove unneeded routes 2022-12-03 17:50:22 +01:00
1f61efb1b6 No need to pass tracing guard 2022-12-03 17:15:49 +01:00
be7b29d631 Upgrade to Axum 0.6 and refactor 2022-12-03 17:08:23 +01:00
6b5bd9f113 Use local deps 2022-11-02 20:50:23 +01:00
ba01105058 Add address from config, rate limiter and tracing 2022-11-02 00:24:17 +01:00
14c418dacc Migrate to askama 2022-11-01 20:45:06 +01:00
5b007a3220 Migrate to Axum 2022-10-31 02:13:42 +01:00
c25d431cf3 Don't panic! 2022-10-29 19:09:56 +02:00
635e7e4266 No need for context constructor 2022-10-29 17:55:00 +02:00
57471181f3 Adjust routes 2022-10-29 17:13:12 +02:00
f3f5ce5145 Thanks clippy! 2022-10-29 17:12:50 +02:00
a1b5d43ac5 Separate context 2022-10-29 17:12:43 +02:00
cd90c982f6 Use path_prefix in template 2022-10-29 01:07:43 +02:00
640517b48c Use mailer 2022-10-29 00:42:15 +02:00
e860ffa86d Add states 2022-10-29 00:41:49 +02:00
6d388ed61b Move form out 2022-10-29 00:41:32 +02:00
dfe4290713 Add mailer 2022-10-29 00:41:18 +02:00
a1cd8f431d Add config.rs 2022-10-29 00:41:02 +02:00
047b5de2d1 Split states.rs 2022-10-29 00:40:54 +02:00