|
@@ -56,7 +56,7 @@ import KeychainAccess
|
|
|
|
|
|
@objc var requestPasscodeAtStart: Bool {
|
|
@objc var requestPasscodeAtStart: Bool {
|
|
get {
|
|
get {
|
|
- let keychainOLD = Keychain(service: NCGlobal.shared.serviceShareKeyChain)
|
|
|
|
|
|
+ let keychainOLD = Keychain(service: "Crypto Cloud")
|
|
if let value = keychainOLD["notPasscodeAtStart"], !value.isEmpty {
|
|
if let value = keychainOLD["notPasscodeAtStart"], !value.isEmpty {
|
|
if value == "true" {
|
|
if value == "true" {
|
|
keychain["requestPasscodeAtStart"] = "false"
|
|
keychain["requestPasscodeAtStart"] = "false"
|
|
@@ -310,7 +310,7 @@ import KeychainAccess
|
|
// MARK: -
|
|
// MARK: -
|
|
|
|
|
|
private func migrate(key: String) {
|
|
private func migrate(key: String) {
|
|
- let keychainOLD = Keychain(service: NCGlobal.shared.serviceShareKeyChain)
|
|
|
|
|
|
+ let keychainOLD = Keychain(service: "Crypto Cloud")
|
|
if let value = keychainOLD[key], !value.isEmpty {
|
|
if let value = keychainOLD[key], !value.isEmpty {
|
|
keychain[key] = value
|
|
keychain[key] = value
|
|
keychainOLD[key] = nil
|
|
keychainOLD[key] = nil
|
|
@@ -321,6 +321,8 @@ import KeychainAccess
|
|
try? keychain.removeAll()
|
|
try? keychain.removeAll()
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ // MARK: -
|
|
|
|
+
|
|
@objc func getPassword(account: String) -> String {
|
|
@objc func getPassword(account: String) -> String {
|
|
let key = "password" + account
|
|
let key = "password" + account
|
|
migrate(key: key)
|
|
migrate(key: key)
|