Skip to content
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

ワンタイムパスワード・マジックナンバーの生成処理のコード整理 #41

Merged
merged 2 commits into from
Mar 23, 2023

Conversation

sai-gillingham
Copy link
Contributor

マジックナンバーを解消してほしい
#35

について、

■ createTwoFactorAuthOneTimeToken関数名の意味がないため、削除しました。
■ その代わりにCustomerTwoFactorAuthServiceにあるgenerateExpiryDate関数を利用するようにする
-> コントローラーでモデルのモデルのセッター関数を利用する
■ ワンタイムトークンの桁数をハードコードから定数に変更しました。
■ readOneTimeToken関数とhashOneTimeToken関数は同じことしているため、readOneTimeToken関数を消しました。
■ 有効期限生成コードを整理しました。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants