Skip to content

Conversation

@JohnNiang
Copy link
Member

What type of PR is this?

/kind improvement
/area core
/milestone 2.22.x

What this PR does / why we need it:

This PR refactors authorization configuration to enhance access control and add cancel link in TOTP forms.

So that we can cancel TOTP authentication by being able to redirect to logout page.

Which issue(s) this PR fixes:

Fixes #8172

Special notes for your reviewer:

  1. Try to configure TOTP for your own account
  2. Try to logout and login
  3. Click the cancel link and you will be redirected to logout page
  4. Try to click the logout button

Does this PR introduce a user-facing change?

优化二步验证登录体验

@f2c-ci-robot f2c-ci-robot bot added kind/improvement Categorizes issue or PR as related to a improvement. release-note Denotes a PR that will be considered when it comes time to generate release notes. labels Jan 6, 2026
@f2c-ci-robot f2c-ci-robot bot added this to the 2.22.x milestone Jan 6, 2026
@f2c-ci-robot f2c-ci-robot bot added the area/core Issues or PRs related to the Halo Core label Jan 6, 2026
@sonarqubecloud
Copy link

sonarqubecloud bot commented Jan 6, 2026

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 Jan 7, 2026
@f2c-ci-robot
Copy link

f2c-ci-robot bot commented Jan 7, 2026

[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

Details 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 Jan 7, 2026
@f2c-ci-robot f2c-ci-robot bot merged commit c610b0a into main Jan 7, 2026
10 checks passed
@JohnNiang JohnNiang deleted the refactor/exit-2fa branch January 7, 2026 06:43
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/improvement Categorizes issue or PR as related to a improvement. 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.

进入两步登录验证页面后无法退出

3 participants