Compare commits

...

2 commits

Author SHA1 Message Date
ad9012cf64
update todo 2023-08-30 13:19:04 -07:00
463d4b742b
get users almost done i think 2023-08-30 13:14:18 -07:00
2 changed files with 4 additions and 2 deletions

View file

@ -34,6 +34,6 @@ _these features are implemented_
## todo ## todo
- get users multiple pages - find out why the last user's colors in getusers are broken???? (might be rubrub issue !!)
- move authorization logic to (./src/helpers/accounts.rs)[./src/helpers/accounts.rs] - move authorization logic to (./src/helpers/accounts.rs)[./src/helpers/accounts.rs]
- make gjp2 authentication faster (bcrypt?) - make gjp2 authentication faster (bcrypt?)

View file

@ -88,7 +88,9 @@ pub fn get_users(input: Form<FormGetUsers>) -> status::Custom<&'static str> {
let response = if amount < 1 { let response = if amount < 1 {
String::from("-1") String::from("-1")
} else { } else {
vec![results.join("|"), format!("{}:#{}:10", amount, input.page * 10)].join("#") println!("{:?}", results);
println!("{:?}", vec![results.join("|"), format!("{}:{}:10", amount, input.page * 10)].join("#"));
vec![results.join("|"), format!("{}:{}:10", amount, input.page * 10)].join("#")
}; };
return status::Custom(Status::Ok, Box::leak(response.into_boxed_str())) return status::Custom(Status::Ok, Box::leak(response.into_boxed_str()))