mirror of
https://github.com/johrpan/musicus.git
synced 2025-10-27 04:07:25 +01:00
Add a way to log out
This commit is contained in:
parent
67fad1329d
commit
5b066a05b6
6 changed files with 126 additions and 35 deletions
|
|
@ -65,8 +65,8 @@ impl Client {
|
|||
}
|
||||
|
||||
/// Set the user credentials to use.
|
||||
pub fn set_login_data(&self, data: LoginData) {
|
||||
self.login_data.replace(Some(data));
|
||||
pub fn set_login_data(&self, data: Option<LoginData>) {
|
||||
self.login_data.replace(data);
|
||||
self.token.replace(None);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue