Small formating

This commit is contained in:
2025-04-11 23:50:16 +02:00
parent e95bb7d291
commit d4ef24c99f

View File

@@ -220,10 +220,11 @@ fn validate_authentication(user: &User, password: &Password) -> Result<bool, Box
.verify_password(password.value.as_bytes(), &hash)
.is_err()
{
return Ok(false);
}
Ok(false)
} else {
Ok(true)
}
}
fn generate_jwt(user: &User, app_state: Data<AppState>) -> Result<String, Box<dyn Error>> {
let header = Header::new(Algorithm::ES256);