auth::wall_entry now uses &serde_json::Value's as a param

This commit is contained in:
shockrah 2020-06-18 22:31:15 -07:00
parent 2e350133a1
commit e8e1a13d6d

View File

@ -30,7 +30,7 @@ fn open_route(path: &str) -> bool {
return path == routes::INVITE_JOIN
}
pub async fn wall_entry(path: &str, pool: &Pool, params: &HashMap<&str, &str>) -> Result<AuthReason, mysql_async::error::Error> {
pub async fn wall_entry(path: &str, pool: &Pool, params: &serde_json::Value) -> Result<AuthReason, mysql_async::error::Error> {
// Start by Checking if the api key is in our keystore
if open_route(path) {
Ok(AuthReason::OpenAuth)