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

Bug fix for 2FA. #1882

Merged
merged 9 commits into from
May 23, 2024
Merged

Bug fix for 2FA. #1882

merged 9 commits into from
May 23, 2024

Conversation

msyk
Copy link
Member

@msyk msyk commented May 17, 2024

No description provided.

$expSeconds = $prefix == "" ? $this->dbSettings->getExpiringSeconds() :
($prefix == "#" ? $this->dbSettings->getExpiringSeconds() :
($prefix == "+" ? $this->dbSettings->getExpiringSeconds() :
($prefix == "=" ? $this->dbSettings->getExpiringSeconds2FA() :
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

== による比較の部分、 === にすることは可能でしょうか?
PHP 8.0で比較演算子の扱いが変わっているので、可能なら === にしておくとよいと思います。

https://www.php.net/manual/ja/language.operators.comparison.php
より

警告

PHP 8.0.0 より前のバージョンでは、 文字列が数値または数値形式の文字列の場合、文字列は比較する前に数値に変換されていました。

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

なるほど...

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ご対応ありがとうございました!

@msyk
Copy link
Member Author

msyk commented May 23, 2024

Collectedly I fixed some bugs that were detected by unit test.

@matsuo matsuo merged commit 3f886c6 into INTER-Mediator:master May 23, 2024
14 checks passed
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.

None yet

2 participants