diff --git a/enzevalos_iphone/AuthenticationViewModel.swift b/enzevalos_iphone/AuthenticationViewModel.swift index d9ec6d7cc3f80025b4549d5a469c61780352f48e..8726954564564b473bd789d77a1489995831fccf 100644 --- a/enzevalos_iphone/AuthenticationViewModel.swift +++ b/enzevalos_iphone/AuthenticationViewModel.swift @@ -28,8 +28,8 @@ class AuthenticationViewModel : ObservableObject { switch promise { case AuthenticationModel.AuthenticationResult.Success : self.authenticationSucceed() - case AuthenticationModel.AuthenticationResult.Error : - self.authenticationFailed(error: MailServerConnectionError.AuthenticationError) + case AuthenticationModel.AuthenticationResult.Error(let value) : + self.authenticationFailed(error: value) case AuthenticationModel.AuthenticationResult.Timeout : self.timeoutNotification() } @@ -69,8 +69,8 @@ class AuthenticationViewModel : ObservableObject { switch promise { case AuthenticationModel.AuthenticationResult.Success : self.authenticationSucceed() - case AuthenticationModel.AuthenticationResult.Error : - self.authenticationFailed(error: MailServerConnectionError.AuthenticationError) + case AuthenticationModel.AuthenticationResult.Error(let value) : + self.authenticationFailed(error: value) case AuthenticationModel.AuthenticationResult.Timeout : self.timeoutNotification() }