Skip to content

Conversation

@JohnNiang
Copy link
Member

What type of PR is this?

/kind bug
/area core
/milestone 2.17.x

What this PR does / why we need it:

Some users encountered 2FA required issue after upgrading Halo 2.16, because they enabled 2FA but didn't configure TOTP before. The issue was introduced by #6005.

This PR checks if TOTP configured to determine whether 2FA is required.

Does this PR introduce a user-facing change?

修复在没有配置 TOTP 验证器的情况下仍被要求二步验证的问题

Signed-off-by: JohnNiang <johnniang@foxmail.com>
@f2c-ci-robot f2c-ci-robot bot added release-note Denotes a PR that will be considered when it comes time to generate release notes. kind/bug Categorizes issue or PR as related to a bug. labels Jun 27, 2024
@f2c-ci-robot f2c-ci-robot bot added this to the 2.17.x milestone Jun 27, 2024
@f2c-ci-robot f2c-ci-robot bot added the area/core Issues or PRs related to the Halo Core label Jun 27, 2024
@f2c-ci-robot f2c-ci-robot bot requested review from LIlGG and wan92hen June 27, 2024 08:41
@codecov
Copy link

codecov bot commented Jun 27, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 57.01%. Comparing base (bc10336) to head (7fbfc63).
Report is 11 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #6174      +/-   ##
============================================
+ Coverage     54.51%   57.01%   +2.50%     
- Complexity     3523     3707     +184     
============================================
  Files           646      652       +6     
  Lines         21862    22037     +175     
  Branches       1528     1537       +9     
============================================
+ Hits          11917    12565     +648     
+ Misses         9328     8867     -461     
+ Partials        617      605      -12     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@ruibaby ruibaby left a comment

Choose a reason for hiding this comment

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

/lgtm

@f2c-ci-robot f2c-ci-robot bot added the lgtm Indicates that a PR is ready to be merged. label Jun 27, 2024
@f2c-ci-robot
Copy link

f2c-ci-robot bot commented Jun 27, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ruibaby

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@f2c-ci-robot f2c-ci-robot bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jun 27, 2024
@f2c-ci-robot f2c-ci-robot bot merged commit 556e65a into halo-dev:main Jun 27, 2024
@ruibaby ruibaby modified the milestones: 2.17.x, 2.17.0 Jun 27, 2024
@JohnNiang JohnNiang deleted the bug/unexpected-2fa-enabled branch June 27, 2024 10:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. area/core Issues or PRs related to the Halo Core kind/bug Categorizes issue or PR as related to a bug. lgtm Indicates that a PR is ready to be merged. release-note Denotes a PR that will be considered when it comes time to generate release notes.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants