1
0
mirror of https://gitlab.com/comunic/comunicapiv3 synced 2025-06-21 00:45:18 +00:00

Mark new field as to remove

This commit is contained in:
2021-02-13 14:48:35 +01:00
parent 985abc3e99
commit becd54e8c6
3 changed files with 12 additions and 5 deletions

View File

@ -78,6 +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 = self.ok_or_bad_request(
@ -111,7 +112,8 @@ impl HttpRequestHandler {
/// Check login token
pub fn check_user_token(&mut self) -> Res {
let token = self.post_string("userToken1")?;
// TODO : remove fallback
let token = self.post_string_with_fallback("token", "userToken1")?;
// Find user
match account_helper::find_user_by_login_token(&token, self.api_client()) {