Commit Graph

1462 Commits

Author SHA1 Message Date
bitfl0wer fec52f506d begin working on register 2023-04-20 00:14:11 +02:00
bitfl0wer b577161733 add users hashmap 2023-04-19 23:32:02 +02:00
Flori 73016ae21b Merge pull request #3 from polyphony-chat/feature/register-login
Bring main up-to-date
2023-04-19 21:42:04 +02:00
bitfl0wer 45b13e4865 add await to fix test error 2023-04-19 20:58:14 +02:00
bitfl0wer e1d004afae add additional documentation and TODO 2023-04-19 20:42:28 +02:00
bitfl0wer db177fdaad create new() method 2023-04-19 20:42:11 +02:00
bitfl0wer d6bd7c4710 Include new file 2023-04-19 20:41:52 +02:00
bitfl0wer 6a8260c4bb make progress on instance object creation 2023-04-19 20:41:33 +02:00
bitfl0wer c5b9e0efee implement getting InstancePoliciesSchema
Co-authored-by: sky <skyrina@users.noreply.github.com>
2023-04-19 20:41:15 +02:00
bitfl0wer d4ea4bd096 remove token check, add username impl 2023-04-17 22:38:21 +02:00
bitfl0wer f12d5ed8f6 add Token struct and impl 2023-04-17 21:31:15 +02:00
bitfl0wer dc5cd09091 start working on register 2023-04-16 23:03:24 +02:00
bitfl0wer 3be962146b add gateway object 2023-04-16 23:03:12 +02:00
Flori c640fd5a5a Merge pull request #2 from polyphony-chat/feature/client
Feature/client
2023-04-16 22:53:20 +02:00
bitfl0wer 1319ca1736 use camel case 2023-04-16 22:50:51 +02:00
bitfl0wer fde38bc358 remove impl LoginSchema, add InstancePolicies 2023-04-16 22:18:51 +02:00
bitfl0wer 4c9ddc4569 Add PartialEq and Eq derives 2023-04-16 22:16:39 +02:00
bitfl0wer f6fce684c1 Rename client to instance 2023-04-16 22:16:22 +02:00
bitfl0wer 7dc25dd4c6 add auth module 2023-04-16 15:07:15 +02:00
bitfl0wer fc397672f5 reformat file 2023-04-16 14:55:13 +02:00
bitfl0wer 6cba2f93e1 Added email regex validation and tests 2023-04-16 14:09:23 +02:00
bitfl0wer f4b500eadb Implement LoginSchema 2023-04-16 13:41:26 +02:00
bitfl0wer 0ec8e3371b add comment 2023-04-16 12:33:57 +02:00
bitfl0wer 98551dc2a2 Write test to check consent validation 2023-04-16 12:32:49 +02:00
bitfl0wer b8038f52bf write tests to check username validation 2023-04-16 12:30:30 +02:00
bitfl0wer 30610aacfd add tests to confirm password validation 2023-04-16 12:26:12 +02:00
bitfl0wer 1b9ccf3154 add "new" method for RegSchema with custom errors 2023-04-15 22:06:18 +02:00
bitfl0wer db45e493ec Add TotpSchema 2023-04-15 21:20:32 +02:00
bitfl0wer e1003ac2b6 Update RegisterSchema, add LoginSchema 2023-04-15 21:16:47 +02:00
bitfl0wer ff60853d0b create RegisterSchema 2023-04-15 21:12:33 +02:00
bitfl0wer 4f922e163f create schemas.rs 2023-04-15 20:16:18 +02:00
bitfl0wer b8cc3bdf6b add images 2023-04-15 18:33:18 +02:00
bitfl0wer 1f40417ee4 update readme, add images 2023-04-15 18:33:17 +02:00
bitfl0wer f224cf8c97 Merge branch 'main' of https://github.com/polyphony-chat/chorus 2023-04-15 18:16:28 +02:00
bitfl0wer 8ac0c2994f add test_send_request 2023-04-15 18:16:26 +02:00
Flori 111b8dd8f0 Update rust.yml 2023-04-15 17:50:48 +02:00
Flori 7d7a4d102a Update rust.yml 2023-04-15 17:47:24 +02:00
Flori 592d3a2559 Update rust.yml 2023-04-15 17:44:58 +02:00
Flori 2122bf8a1c Update rust.yml 2023-04-15 17:42:31 +02:00
Flori 9baafc0371 Update rust.yml 2023-04-15 17:35:07 +02:00
Flori 748b4b1d14 Update rust.yml 2023-04-15 17:31:45 +02:00
Flori ece8221e79 Update rust.yml 2023-04-15 17:29:27 +02:00
Flori b120d693e6 Host local spacebar server 2023-04-15 17:26:44 +02:00
bitfl0wer 6b98a2cc23 add limit updates for Error, Global, Ip
Despite Error, Global and Ip technically being handled seperately, we still need to update their "reset" and "limit" values to match what the API tells us.
2023-04-15 17:12:33 +02:00
bitfl0wer 2ec0d3b9c8 remove unneccessary variable 2023-04-15 17:09:42 +02:00
bitfl0wer d30343df38 add add_remaining
add_remaining() adds an i64 to the interal "remaining: u64" with underflow protection.
2023-04-15 17:08:19 +02:00
bitfl0wer 62358d05db update internal values through mut ref 2023-04-15 17:07:46 +02:00
bitfl0wer 4b754f3131 🎉 mark rate limiter as complete (with hint) 2023-04-15 14:58:19 +02:00
bitfl0wer c01adc28fa add fallback if no rate limit header received 2023-04-15 14:55:50 +02:00
bitfl0wer ce075524c8 Derive PartialEq and Eq to use assertEq in tests 2023-04-15 13:54:57 +02:00