You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -642,7 +642,7 @@ class VaultCubit extends Cubit<VaultState> {
642
642
l.d('lastRemoteEtag: $lastRemoteEtag');
643
643
final tempLockedFile =await _remoteVaultRepo.download(user, credsRemote, lastRemoteEtag);
644
644
645
-
if (recovery ==PasswordMismatchRecoverySituation.RemoteUserDiffers) {
645
+
if (recovery ==PasswordMismatchRecoverySituation.remoteUserDiffers) {
646
646
// If we're in state 3 (or 4) this should get us into 2; User may need to enter the other password again when the next refresh operation happens (assuming we found no change to the kdbx to download this time) but they'll get the problem resolved eventually.
647
647
l.d('Updating QU with newly successful service password');
@@ -753,7 +753,7 @@ class VaultCubit extends Cubit<VaultState> {
753
753
754
754
// RemoteFileDiffers only time and safe time to save the credentials? we are saying whatever creds worked to open the remote file is what we will save as the credentials needed to open the local file.
755
755
// updatedLocalFile must be null if we are in remotefilediffers mode
756
-
if (recovery ==PasswordMismatchRecoverySituation.RemoteFileDiffers&& successfulCredentials !=null) {
756
+
if (recovery ==PasswordMismatchRecoverySituation.remoteFileDiffers&& successfulCredentials !=null) {
757
757
l.d('Updating QU with newly successful KDBX password');
l.e("Kee Vault failed to apply a change to your local vault for some unexpected reason or hardware fault. Please Share these application logs with us so that we can discuss and advise what to do next. If you have your Kee Vault on other devices, we recommend disconnecting them from the internet and exporting your vault to a KDBX file now, especially if you do not have a recent backup. We are likely to be able to restore all or most of your data but this may take a significant amount of time so the sooner you contact us to explain the details of what may have triggered the problem and share the error logs with us, the sooner we'll get you back up and running. Background refresh error: $e\n\n stack: $stack");
787
787
emitError(
@@ -1132,7 +1132,7 @@ class VaultCubit extends Cubit<VaultState> {
1132
1132
//TODO:f: check history after upload and warn user or attempt reconciliation in case that they uploaded a newer version from a different device in between our check for the latest version and the network upload completing.
l.d('uploading vault with recovery mode $recovery');
1137
1137
VaultState s = state;
1138
1138
if (s isVaultLoaded) {
@@ -1157,17 +1157,17 @@ class VaultCubit extends Cubit<VaultState> {
1157
1157
'Cannot upload when we do not know the credentials required to perform merge operation or update KDBX password. Please tell us about this error so we can resolve it for you.');
1158
1158
}
1159
1159
1160
-
if (recovery !=PasswordMismatchRecoverySituation.None&& overridePasswordRemote !=null) {
1160
+
if (recovery !=PasswordMismatchRecoverySituation.none&& overridePasswordRemote !=null) {
1161
1161
l.d('we will attempt a recovery from a mismatched password');
1162
1162
final protectedValue =ProtectedValue.fromString(overridePasswordRemote);
final message = e.handle('Error establishing current remote file version');
@@ -1230,7 +1230,7 @@ class VaultCubit extends Cubit<VaultState> {
1230
1230
// This should be rare because we've recently retrieved or checked our download auth token but can happen sometimes, maybe on very slow networks when the user is changing their master password elsewhere concurrently.
1231
1231
l.w('Unable to download latest remote file for local merging due to authentication error. User recently changed password elsewhere?');
1232
1232
handleUploadAuthError(updatedLocalFile, state isVaultSaving? (state asVaultSaving).locally :false,
Copy file name to clipboardExpand all lines: lib/password_mismatch_recovery_situation.dart
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
enumPasswordMismatchRecoverySituation {
2
-
None,
3
-
RemoteUserDiffers,
4
-
RemoteFileDiffers,
2
+
none,
3
+
remoteUserDiffers,
4
+
remoteFileDiffers,
5
5
6
6
//TODO: Probably can never know that these are the situation - can't tell the difference between user typing the wrong password and can't try the remote file password anyway until the service password is correct. Maybe delete these enum values?
0 commit comments