TF-34 Add domain layer login for fix bug mock data user
This commit is contained in:
@@ -17,7 +17,8 @@ class AuthenticationInteractor {
|
||||
await Future.wait([
|
||||
credentialRepository.saveBaseUrl(baseUrl),
|
||||
credentialRepository.saveUserName(userName),
|
||||
credentialRepository.savePassword(password)
|
||||
credentialRepository.savePassword(password),
|
||||
credentialRepository.saveUserProfile(user),
|
||||
]);
|
||||
return Right(AuthenticationUserViewState(user));
|
||||
} catch (e) {
|
||||
|
||||
@@ -15,7 +15,8 @@ class DeleteCredentialInteractor {
|
||||
await Future.wait([
|
||||
credentialRepository.removeBaseUrl(),
|
||||
credentialRepository.removeUserName(),
|
||||
credentialRepository.removePassword()
|
||||
credentialRepository.removePassword(),
|
||||
credentialRepository.removeUserProfile(),
|
||||
]);
|
||||
return Right(DeleteCredentialSuccess());
|
||||
} catch (exception) {
|
||||
|
||||
Reference in New Issue
Block a user