mirror of
				https://github.com/immich-app/immich.git
				synced 2025-11-03 19:17:11 -05:00 
			
		
		
		
	fix(mobile) not possible to sign out when option is enable (#860)
This commit is contained in:
		
							parent
							
								
									e63d165b65
								
							
						
					
					
						commit
						a87c1c1210
					
				@ -164,6 +164,20 @@ class AuthenticationNotifier extends StateNotifier<AuthenticationState> {
 | 
			
		||||
    _assetCacheService.invalidate();
 | 
			
		||||
    _albumCacheService.invalidate();
 | 
			
		||||
    _sharedAlbumCacheService.invalidate();
 | 
			
		||||
 | 
			
		||||
    // Remove login info from local storage
 | 
			
		||||
    var loginInfo =
 | 
			
		||||
        Hive.box<HiveSavedLoginInfo>(hiveLoginInfoBox).get(savedLoginInfoKey);
 | 
			
		||||
    if (loginInfo != null) {
 | 
			
		||||
      loginInfo.email = "";
 | 
			
		||||
      loginInfo.password = "";
 | 
			
		||||
      loginInfo.isSaveLogin = false;
 | 
			
		||||
 | 
			
		||||
      Hive.box<HiveSavedLoginInfo>(hiveLoginInfoBox).put(
 | 
			
		||||
        savedLoginInfoKey,
 | 
			
		||||
        loginInfo,
 | 
			
		||||
      );
 | 
			
		||||
    }
 | 
			
		||||
    return true;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user