mirror of
https://github.com/Xevion/paperless-mobile.git
synced 2025-12-09 04:07:57 -06:00
feat: Fix hive errors, change provider hierarchy for blocs, translate strings
This commit is contained in:
@@ -143,8 +143,9 @@ class AuthenticationCubit extends Cubit<AuthenticationState> {
|
||||
debugPrint("Invalid authentication for $userId");
|
||||
return;
|
||||
}
|
||||
|
||||
final credentials = credentialsBox.get(userId);
|
||||
await credentialsBox.close();
|
||||
|
||||
await _resetExternalState();
|
||||
|
||||
_dioWrapper.updateSettings(
|
||||
@@ -154,9 +155,10 @@ class AuthenticationCubit extends Cubit<AuthenticationState> {
|
||||
baseUrl: account.serverUrl,
|
||||
);
|
||||
|
||||
await _reloadRepositories();
|
||||
globalSettings.currentLoggedInUser = userId;
|
||||
await globalSettings.save();
|
||||
await _reloadRepositories();
|
||||
|
||||
emit(
|
||||
AuthenticationState(
|
||||
isAuthenticated: true,
|
||||
|
||||
Reference in New Issue
Block a user