We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff2c722 commit 39f26c5Copy full SHA for 39f26c5
Authenticator/Classes/OTPTokenEntryViewController.m
@@ -26,7 +26,6 @@
26
#import "OTPSegmentedControlCell.h"
27
#import "OTPTextFieldCell.h"
28
#import <OneTimePassword/OneTimePassword.h>
29
-#import <Base32/MF_Base32Additions.h>
30
31
32
typedef enum : NSUInteger {
@@ -123,7 +122,7 @@ - (void)createToken
123
122
{
124
if (!self.formIsValid) return;
125
126
- NSData *secret = [NSData dataWithBase32String:self.secretKeyCell.textField.text];
+ NSData *secret = [NSData secretWithString:self.secretKeyCell.textField.text];
127
128
if (secret.length) {
129
OTPTokenType tokenType = (self.tokenTypeCell.segmentedControl.selectedSegmentIndex == OTPTokenTypeIndexTimer) ? OTPTokenTypeTimer : OTPTokenTypeCounter;
0 commit comments