get users almost done i think
This commit is contained in:
parent
3daa17cccf
commit
463d4b742b
2 changed files with 4 additions and 2 deletions
|
@ -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?)
|
|
@ -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()))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue