File tree 1 file changed +1
-5
lines changed 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 {
126
126
}
127
127
128
128
- (void )saveToEntry : (KPKEntry *)entry {
129
- /* *
129
+ /*
130
130
strategy ist to add a otp attribute regardless of the current state
131
131
update or add KeePass native settings regardless of current state
132
132
133
133
This leads to entries having at least the otp and the native settings
134
134
*/
135
-
136
-
137
135
NSString *urlString = [NSURL URLWithHmacOTPKey: self .key algorithm: self .hashAlgorithm issuer: [self _issuerForEntry: entry] counter: self .counter digits: self .numberOfDigits].absoluteString ;
138
136
KPKAttribute *urlAttribute = [entry attributeWithKey: kKPKAttributeKeyOTPOAuthURL ];
139
137
/* update or create the URL attribute */
@@ -145,9 +143,7 @@ - (void)saveToEntry:(KPKEntry *)entry {
145
143
urlAttribute.value = urlString;
146
144
}
147
145
148
-
149
146
/* HTOP Settings */
150
-
151
147
KPKAttribute *asciiKeyAttribute = [entry attributeWithKey: kKPKAttributeKeyHmacOTPSecret ];
152
148
KPKAttribute *hexKeyAttribute = [entry attributeWithKey: kKPKAttributeKeyHmacOTPSecretHex ];
153
149
KPKAttribute *base32KeyAttribute = [entry attributeWithKey: kKPKAttributeKeyHmacOTPSecretBase32 ];
You can’t perform that action at this time.
0 commit comments