File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed
Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -126,14 +126,12 @@ - (BOOL)_parseAttributes:(NSArray <KPKAttribute*>*)attributes {
126126}
127127
128128- (void )saveToEntry : (KPKEntry *)entry {
129- /* *
129+ /*
130130 strategy ist to add a otp attribute regardless of the current state
131131 update or add KeePass native settings regardless of current state
132132
133133 This leads to entries having at least the otp and the native settings
134134 */
135-
136-
137135 NSString *urlString = [NSURL URLWithHmacOTPKey: self .key algorithm: self .hashAlgorithm issuer: [self _issuerForEntry: entry] counter: self .counter digits: self .numberOfDigits].absoluteString ;
138136 KPKAttribute *urlAttribute = [entry attributeWithKey: kKPKAttributeKeyOTPOAuthURL ];
139137 /* update or create the URL attribute */
@@ -145,9 +143,7 @@ - (void)saveToEntry:(KPKEntry *)entry {
145143 urlAttribute.value = urlString;
146144 }
147145
148-
149146 /* HTOP Settings */
150-
151147 KPKAttribute *asciiKeyAttribute = [entry attributeWithKey: kKPKAttributeKeyHmacOTPSecret ];
152148 KPKAttribute *hexKeyAttribute = [entry attributeWithKey: kKPKAttributeKeyHmacOTPSecretHex ];
153149 KPKAttribute *base32KeyAttribute = [entry attributeWithKey: kKPKAttributeKeyHmacOTPSecretBase32 ];
You can’t perform that action at this time.
0 commit comments