get users almost done i think

This commit is contained in:
Reid 2023-08-30 13:14:18 -07:00
parent 3daa17cccf
commit 463d4b742b
Signed by: reidlab
GPG key ID: 6C9EAA3364F962C8
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 users colors in getusers are broken????
- 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()))