Browse Source

change delegate logic Login

Marino Faggiana 7 years ago
parent
commit
b783d4d53f
1 changed files with 4 additions and 2 deletions
  1. 4 2
      iOSClient/Login/CCLoginWeb.swift

+ 4 - 2
iOSClient/Login/CCLoginWeb.swift

@@ -106,7 +106,8 @@ extension CCLoginWeb: SwiftModalWebVCDelegate {
                         appDelegate.settingActiveAccount(account, activeUrl: serverUrl, activeUser: username, activeUserID: tableAccount.userID, activePassword: password)
                         
                         self.delegate?.loginSuccess(NSInteger(loginType.rawValue))
-                        
+                        self.delegate?.loginWebClose()
+
                         self.viewController?.dismiss(animated: true, completion: nil)
                     }
                     
@@ -124,7 +125,8 @@ extension CCLoginWeb: SwiftModalWebVCDelegate {
                         appDelegate.settingActiveAccount(account, activeUrl: serverUrl, activeUser: username, activeUserID: tableAccount.userID, activePassword: password)
                         
                         self.delegate?.loginSuccess(NSInteger(loginType.rawValue))
-                        
+                        self.delegate?.loginWebClose()
+
                         self.viewController?.dismiss(animated: true, completion: nil)
                     }
                 }