-
Notifications
You must be signed in to change notification settings - Fork 1
アルゴリズム、OTP桁数、タイムステップ数が変更できることの確認対応 #10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
@NMai-source まだ作業中かもしれませんが、今後その場合は Draft として作成できるのでそのようにしてください。 レビューする前に、コンフリクトしているのでこれを解消する必要があります。
これにより、 #7 の差分はこの PR の差分としては除外される想定になります。 |
|
@ykws |
|
@NMai-source 失念していました。私のリポジトリなので、 #7 の PR に Merge ボタン表示されてなかったですよね? 今 Collaborator としてこのリポジトリに招待したので後ほど承認をお願いします。 しかし、依然コンフリクトが残っているのとコミット数が多いので rebase をする必要がありそうです。 remote branch に upstream を追加してもらっていれば、 |
11eac51 to
5e543b8
Compare
|
リポジトリへの招待とマージありがとうございます。 |
|
PRコメントについて、書き方を教えて頂きありがとうございます。 |
確かに消えてますね。 |
5e543b8 to
f62e1e6
Compare
ykws
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
@ykws
以下の指摘についてはこれから修正予定です。
|
ykws
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| if (_test1 != nil) { | ||
| self.token.algorithm = _test1; | ||
| self.scheduledTimerWithTimeInterval = 0.03f; | ||
| if (_algorithm != nil) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
|
||
| #import "ViewController.h" | ||
| #import "OneTimePassword.h" | ||
| #import "SettingController.h" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| self.token = [OTPToken tokenWithType:OTPTokenTypeTimer secret:secretData name:name issuer:issuer]; | ||
| self.scheduledTimerWithTimeInterval = 0.03f; | ||
| if (_algorithm != nil) { | ||
| NSArray *OTPAlgorithmStrings = @[@"SHA1", @"SHA256", @"SHA512"]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
|
||
| _localProgress = newProgress; | ||
| [self.oneTimePasswordProgressView setProgress:_localProgress animated:NO]; | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
|
||
| @implementation ViewController | ||
|
|
||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
|
||
| @property (nonatomic, assign) CGFloat localProgress; | ||
|
|
||
| @property (nonatomic) float scheduledTimerWithTimeInterval; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
|
||
| @property (weak, nonatomic) IBOutlet UILabel *oneTimePasswordLabel; | ||
| @property (weak, nonatomic) IBOutlet UAProgressView *oneTimePasswordProgressView; | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| #import <UIKit/UIKit.h> | ||
|
|
||
| @interface ViewController : UIViewController | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| self.token = [OTPToken tokenWithType:OTPTokenTypeTimer secret:secretData name:name issuer:issuer ]; | ||
| self.token = [OTPToken tokenWithType:OTPTokenTypeTimer secret:secretData name:name issuer:issuer]; | ||
| self.scheduledTimerWithTimeInterval = 0.03f; | ||
| if (_algorithm != nil) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
また nil のケースは考慮したくないので、デフォルト値で初期化できておくと良いと思います。
| if([_period isEqualToString:@"60"]) { | ||
| self.scheduledTimerWithTimeInterval = 0.06f; | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
@NMai-source f9456f5 マージコミットが含まれてしまっているので、可能ならこのタイミングで rebase をするとログがより見やすくなります。 練習用のリポジトリを用意したので、この辺りの感覚を掴んでもらえると嬉しいです。 |
|
@ykws |





対応内容
ライブラリ OneTimePassword の仕様検証
アルゴリズム、OTP桁数、タイムステップ数が変更できることの確認
スクリーンショット
Closes #2