bitfl0wer
8666aa34e5
add users hashmap
2023-04-19 23:32:02 +02:00
Flori
389a509bfc
Merge pull request #3 from polyphony-chat/feature/register-login
...
Bring main up-to-date
2023-04-19 21:42:04 +02:00
bitfl0wer
9e10ce05a9
add await to fix test error
2023-04-19 20:58:14 +02:00
bitfl0wer
bc3083bcf6
add additional documentation and TODO
2023-04-19 20:42:28 +02:00
bitfl0wer
33b5d6d57c
create new() method
2023-04-19 20:42:11 +02:00
bitfl0wer
1d25fdffcb
Include new file
2023-04-19 20:41:52 +02:00
bitfl0wer
32f1365a54
make progress on instance object creation
2023-04-19 20:41:33 +02:00
bitfl0wer
f45193fc40
implement getting InstancePoliciesSchema
...
Co-authored-by: sky <skyrina@users.noreply.github.com>
2023-04-19 20:41:15 +02:00
bitfl0wer
7528a8eccd
remove token check, add username impl
2023-04-17 22:38:21 +02:00
bitfl0wer
38e3ee3afa
add Token struct and impl
2023-04-17 21:31:15 +02:00
bitfl0wer
0f424a9c53
start working on register
2023-04-16 23:03:24 +02:00
bitfl0wer
5e3fb77911
add gateway object
2023-04-16 23:03:12 +02:00
Flori
ccbe7122fe
Merge pull request #2 from polyphony-chat/feature/client
...
Feature/client
2023-04-16 22:53:20 +02:00
bitfl0wer
52c2bce5d3
use camel case
2023-04-16 22:50:51 +02:00
bitfl0wer
32ef8ee5b1
remove impl LoginSchema, add InstancePolicies
2023-04-16 22:18:51 +02:00
bitfl0wer
d4bf540203
Add PartialEq and Eq derives
2023-04-16 22:16:39 +02:00
bitfl0wer
4b129ee6a3
Rename client to instance
2023-04-16 22:16:22 +02:00
bitfl0wer
4d10710f4f
add auth module
2023-04-16 15:07:15 +02:00
bitfl0wer
157b351db9
reformat file
2023-04-16 14:55:13 +02:00
bitfl0wer
e919e71819
Added email regex validation and tests
2023-04-16 14:09:23 +02:00
bitfl0wer
76dd665e91
Implement LoginSchema
2023-04-16 13:41:26 +02:00
bitfl0wer
d6ae03b656
add comment
2023-04-16 12:33:57 +02:00
bitfl0wer
746299c029
Write test to check consent validation
2023-04-16 12:32:49 +02:00
bitfl0wer
4e9854d46e
write tests to check username validation
2023-04-16 12:30:30 +02:00
bitfl0wer
062faf8c07
add tests to confirm password validation
2023-04-16 12:26:12 +02:00
bitfl0wer
40425fc282
add "new" method for RegSchema with custom errors
2023-04-15 22:06:18 +02:00
bitfl0wer
28d03b9c9f
Add TotpSchema
2023-04-15 21:20:32 +02:00
bitfl0wer
3957d23c53
Update RegisterSchema, add LoginSchema
2023-04-15 21:16:47 +02:00
bitfl0wer
c5a4a56022
create RegisterSchema
2023-04-15 21:12:33 +02:00
bitfl0wer
ca988d93aa
create schemas.rs
2023-04-15 20:16:18 +02:00
bitfl0wer
3b4e57769c
add images
2023-04-15 18:33:18 +02:00
bitfl0wer
e06fd38916
update readme, add images
2023-04-15 18:33:17 +02:00
bitfl0wer
83d9aff225
Merge branch 'main' of https://github.com/polyphony-chat/chorus
2023-04-15 18:16:28 +02:00
bitfl0wer
673ddd5c8d
add test_send_request
2023-04-15 18:16:26 +02:00
Flori
1d58ff6b72
Update rust.yml
2023-04-15 17:50:48 +02:00
Flori
aba68b09b8
Update rust.yml
2023-04-15 17:47:24 +02:00
Flori
34c9ffb222
Update rust.yml
2023-04-15 17:44:58 +02:00
Flori
5899e0b459
Update rust.yml
2023-04-15 17:42:31 +02:00
Flori
4e1cb8f075
Update rust.yml
2023-04-15 17:35:07 +02:00
Flori
eb3867c7e8
Update rust.yml
2023-04-15 17:31:45 +02:00
Flori
d00244a45a
Update rust.yml
2023-04-15 17:29:27 +02:00
Flori
2c6ce32074
Host local spacebar server
2023-04-15 17:26:44 +02:00
bitfl0wer
e4ba507ace
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
77d5349231
remove unneccessary variable
2023-04-15 17:09:42 +02:00
bitfl0wer
992b803548
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
427ce0541e
update internal values through mut ref
2023-04-15 17:07:46 +02:00
bitfl0wer
4fc9d0712e
🎉 mark rate limiter as complete (with hint)
2023-04-15 14:58:19 +02:00
bitfl0wer
1a398fecd7
add fallback if no rate limit header received
2023-04-15 14:55:50 +02:00
bitfl0wer
384d42e877
Derive PartialEq and Eq to use assertEq in tests
2023-04-15 13:54:57 +02:00
bitfl0wer
a8a4da36c7
add test which checks instance rate limits working
2023-04-15 13:54:33 +02:00