1
0
mirror of https://gitlab.com/comunic/comunicapiv3 synced 2024-11-22 13:29: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)]
pub struct LoginSuccess {
token: String,
// TODO : remove
tokens: LoginTokens,
success: String,
token: String
}
impl LoginSuccess {
pub fn new(token: &str) -> LoginSuccess {
LoginSuccess {
token: token.to_string(),
success: "Login successful".to_string(),
tokens: LoginTokens {
token1: token.to_string(),
token2: "dummy_data".to_string(),
},
}
}
}