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