1
0
mirror of https://gitlab.com/comunic/comunicapiv3 synced 2024-11-22 21:39:21 +00:00

Remove deprecated fields

This commit is contained in:
Pierre HUBERT 2021-03-02 17:50:21 +01:00
parent dd00b520b5
commit ab6b182d89

View File

@ -11,23 +11,13 @@ struct LoginTokens {
#[derive(Serialize, Deserialize)] #[derive(Serialize, Deserialize)]
pub struct LoginSuccess { pub struct LoginSuccess {
token: String, token: String
// TODO : remove
tokens: LoginTokens,
success: String,
} }
impl LoginSuccess { impl LoginSuccess {
pub fn new(token: &str) -> LoginSuccess { pub fn new(token: &str) -> LoginSuccess {
LoginSuccess { LoginSuccess {
token: token.to_string(), token: token.to_string(),
success: "Login successful".to_string(),
tokens: LoginTokens {
token1: token.to_string(),
token2: "dummy_data".to_string(),
},
} }
} }
} }