mirror of
				https://gitlab.com/comunic/comunicmessages
				synced 2025-11-04 12:14:05 +00:00 
			
		
		
		
	Can logout from account.
This commit is contained in:
		@@ -16,6 +16,12 @@ bool AccountHelper::signedIn()
 | 
			
		||||
    return ConfigurationHelper().getAccountTokens().isValid();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void AccountHelper::logout()
 | 
			
		||||
{
 | 
			
		||||
    //Destroy login tokens
 | 
			
		||||
    ConfigurationHelper().setAccountTokens(AccountLoginTokens());
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void AccountHelper::login(const AccountLoginRequest &info)
 | 
			
		||||
{
 | 
			
		||||
    //Create API request
 | 
			
		||||
 
 | 
			
		||||
@@ -27,6 +27,11 @@ public:
 | 
			
		||||
     */
 | 
			
		||||
    bool signedIn();
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * Logout user
 | 
			
		||||
     */
 | 
			
		||||
    void logout();
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * Perform login
 | 
			
		||||
     *
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user