@@ -112,7 +112,7 @@ proc getPasswordStrengthScore*(self: Controller, password, userName: string): in
112112proc storeToKeychain * (self: Controller , data: string ) =
113113 let myKeyUid = singletonInstance.userProfile.getKeyUid ()
114114 let value = singletonInstance.localAccountSettings.getStoreToKeychainValue ()
115- if not main_constants.SUPPORTS_FINGERPRINT or # Dealing with Keychain is the MacOS only feature
115+ if not main_constants.SUPPORTS_FINGERPRINT or # Dealing with Keychain is the MacOS/iOS/Android feature
116116 data.len == 0 or
117117 value == LS_VALUE_STORE or
118118 myKeyUid.len == 0 :
@@ -123,7 +123,7 @@ proc storeToKeychain*(self: Controller, data: string) =
123123
124124proc removeFromKeychain * (self: Controller , key: string ) =
125125 let value = singletonInstance.localAccountSettings.getStoreToKeychainValue ()
126- if not main_constants.IS_MACOS or # Dealing with Keychain is the MacOS only feature
126+ if not main_constants.SUPPORTS_FINGERPRINT or # Dealing with Keychain is the MacOS/iOS/Android feature
127127 key.len == 0 or
128128 value != LS_VALUE_STORE :
129129 self.delegate.onStoreToKeychainError (" " , " " )
@@ -135,4 +135,4 @@ proc authenticateLoggedInUser*(self: Controller) =
135135 var data = SharedKeycarModuleAuthenticationArgs (uniqueIdentifier: UNIQUE_PRIVACY_SECTION_MODULE_AUTH_IDENTIFIER )
136136 if singletonInstance.userProfile.getIsKeycardUser ():
137137 data.keyUid = singletonInstance.userProfile.getKeyUid ()
138- self.events.emit (SIGNAL_SHARED_KEYCARD_MODULE_AUTHENTICATE_USER , data)
138+ self.events.emit (SIGNAL_SHARED_KEYCARD_MODULE_AUTHENTICATE_USER , data)
0 commit comments