mirror of
https://gitlab.com/comunic/comunicapiv3
synced 2024-11-22 13:29:21 +00:00
Remove deprecated fields
This commit is contained in:
parent
dd00b520b5
commit
ab6b182d89
@ -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(),
|
||||
},
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user