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

Fix the problem of unable to enable/disable 2FA for non-admin users #5290

Merged
merged 1 commit into from
Jan 31, 2024

Conversation

JohnNiang
Copy link
Member

@JohnNiang JohnNiang commented Jan 31, 2024

What type of PR is this?

/kind bug
/area core
/milestone 2.12.0

What this PR does / why we need it:

This PR fixes the problem of unable to enable/disable 2FA for non-admin users. See #5287 for more.

The problem is caused by #4737.

Which issue(s) this PR fixes:

Fixes #5287

Does this PR introduce a user-facing change?

修复非管理员无法正常使用两步验证设置的问题

Signed-off-by: John Niang <johnniang@foxmail.com>
@f2c-ci-robot f2c-ci-robot bot added release-note-none Denotes a PR that doesn't merit a release note. kind/bug Categorizes issue or PR as related to a bug. labels Jan 31, 2024
@f2c-ci-robot f2c-ci-robot bot added this to the 2.12.0 milestone Jan 31, 2024
@f2c-ci-robot f2c-ci-robot bot added the area/core Issues or PRs related to the Halo Core label Jan 31, 2024
Copy link

sonarqubecloud bot commented Jan 31, 2024

Quality Gate Passed Quality Gate passed

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
No data about Coverage
0.3% Duplication on New Code

See analysis details on SonarCloud

@f2c-ci-robot f2c-ci-robot bot requested review from guqing and lan-yonghui January 31, 2024 05:49
@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 31, 2024
Copy link

codecov bot commented Jan 31, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (b4bf425) 57.07% compared to head (17151d5) 57.07%.
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##               main    #5290   +/-   ##
=========================================
  Coverage     57.07%   57.07%           
  Complexity     3329     3329           
=========================================
  Files           587      587           
  Lines         18956    18956           
  Branches       1402     1402           
=========================================
  Hits          10820    10820           
  Misses         7558     7558           
  Partials        578      578           

☔ 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 Jan 31, 2024
Copy link

f2c-ci-robot bot commented Jan 31, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: guqing, 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

@ruibaby ruibaby merged commit e15923b into halo-dev:main Jan 31, 2024
7 of 8 checks passed
@JohnNiang JohnNiang deleted the bug/totp-role-template branch January 31, 2024 07:44
@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. and removed release-note-none Denotes a PR that doesn't merit a release note. labels Jan 31, 2024
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.

非管理员无法正常使用两步验证设置
3 participants