mirror of
				https://github.com/KevinMidboe/immich.git
				synced 2025-10-29 17:40:28 +00:00 
			
		
		
		
	fix(mobile) not possible to sign out when option is enable (#860)
This commit is contained in:
		@@ -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;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user