mirror of
https://gitlab.com/comunic/comunicapiv3
synced 2024-11-22 13:29:21 +00:00
Remove fallbacks
This commit is contained in:
parent
aea3cd5807
commit
f7fbea34ea
@ -78,8 +78,7 @@ impl HttpRequestHandler {
|
||||
|
||||
/// Check API client tokens
|
||||
pub fn check_client_token(&mut self) -> RequestResult {
|
||||
// TODO : remove fallback
|
||||
let client_name = self.post_string_with_fallback("client", "serviceName")?;
|
||||
let client_name = self.post_string("client")?;
|
||||
|
||||
let client = self.ok_or_bad_request(
|
||||
api_helper::get_client(&client_name),
|
||||
@ -112,8 +111,7 @@ impl HttpRequestHandler {
|
||||
|
||||
/// Check login token
|
||||
pub fn check_user_token(&mut self) -> Res {
|
||||
// TODO : remove fallback
|
||||
let token = self.post_string_with_fallback("token", "userToken1")?;
|
||||
let token = self.post_string("token")?;
|
||||
|
||||
// Find user
|
||||
match account_helper::find_user_by_login_token(&token, self.api_client()) {
|
||||
|
Loading…
Reference in New Issue
Block a user