|
@@ -120,13 +120,15 @@ extension CCLoginWeb: SwiftModalWebVCDelegate {
|
|
|
|
|
|
if (loginType == k_login_Add || loginType == k_login_Add_Forced) {
|
|
if (loginType == k_login_Add || loginType == k_login_Add_Forced) {
|
|
|
|
|
|
- // STOP Intro
|
|
|
|
- CCUtility.setIntro(true)
|
|
|
|
-
|
|
|
|
|
|
+
|
|
// NO account found, clear
|
|
// NO account found, clear
|
|
if NCManageDatabase.sharedInstance.getAccounts() == nil {
|
|
if NCManageDatabase.sharedInstance.getAccounts() == nil {
|
|
|
|
+ NCUtility.sharedInstance.removeAllSettings()
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ // STOP Intro
|
|
|
|
+ CCUtility.setIntro(true)
|
|
|
|
+
|
|
// Add new account
|
|
// Add new account
|
|
NCManageDatabase.sharedInstance.deleteAccount(account)
|
|
NCManageDatabase.sharedInstance.deleteAccount(account)
|
|
NCManageDatabase.sharedInstance.addAccount(account, url: serverUrl, user: username, password: password, loginFlow: true)
|
|
NCManageDatabase.sharedInstance.addAccount(account, url: serverUrl, user: username, password: password, loginFlow: true)
|