Commit Graph

276 Commits

Author SHA1 Message Date
bitfl0wer f45193fc40
implement getting InstancePoliciesSchema
Co-authored-by: sky <skyrina@users.noreply.github.com>
2023-04-19 20:41:15 +02:00
bitfl0wer 0f424a9c53
start working on register 2023-04-16 23:03:24 +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 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 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 384d42e877
Derive PartialEq and Eq to use assertEq in tests 2023-04-15 13:54:57 +02:00
bitfl0wer 9855efe15e
Derive Debug, start debugging 2023-04-14 23:38:36 +02:00
bitfl0wer 112f44e224
Derive copy trait 2023-04-14 22:22:11 +02:00
bitfl0wer e7756ede4f
change return type from Limits to HashMap 2023-04-12 22:18:20 +02:00
bitfl0wer 252697144f
impl display for limittype, add limittype 2023-04-12 18:32:49 +02:00
bitfl0wer 58c5025afe
add .iter() to Limits 2023-04-12 18:18:55 +02:00
bitfl0wer bb9575211a
refactor limit.rs, moved some logic 2023-04-12 16:49:18 +02:00
bitfl0wer 78856a2fcd
create new folder structure to map api routes 2023-04-10 14:19:31 +02:00