Skip to content

Implement the "Enforce 2FA" feature in the login process.#1954

Merged
NicoPennec merged 1 commit intocgwire:mainfrom
NicoPennec:kitsu-enforce-2fa
Feb 24, 2026
Merged

Implement the "Enforce 2FA" feature in the login process.#1954
NicoPennec merged 1 commit intocgwire:mainfrom
NicoPennec:kitsu-enforce-2fa

Conversation

@NicoPennec
Copy link
Member

Problem
When an organization requires two-factor authentication, users without 2FA enabled cannot set it up during the login process.

Solution
Add a two-factor authentication setup component and related functionality:

  • Redirect to a new "/login/2fa" page to setup 2FA when required by organization configuration.
  • Extract the 2FA setup form in a component to reuse it.
  • Modified the app init to redirect to the 2FA setup form on 403 errors.

@NicoPennec NicoPennec merged commit b9f49f6 into cgwire:main Feb 24, 2026
8 checks passed
@NicoPennec NicoPennec deleted the kitsu-enforce-2fa branch February 24, 2026 16:55
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