Skip to content

Commit

Permalink
Fixes issue where secrets with spaces in them didn't work properly.
Browse files Browse the repository at this point in the history
  • Loading branch information
jensutbult committed Jan 8, 2024
1 parent fad8fa8 commit 383138b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ class AddCredentialController: UITableViewController {
do {
switch mode {
case .manual:
let secret = NSData.ykf_data(withBase32String: self.secretManualText.text ?? "") ?? Data()
let secret = NSData.ykf_data(withBase32String: self.secretManualText.text?.replacingOccurrences(of: " ", with: "") ?? "") ?? Data()
let credentialType = YKFOATHCredentialType.typeFromString(advancedSettings[0][typeIndex])
let algorithm = YKFOATHCredentialAlgorithm.algorithmFromString(advancedSettings[1][algorithmIndex])

Expand Down

0 comments on commit 383138b

Please sign in to comment.