Skip to content

feat: add disable-2fa command#38275

Open
Zettat123 wants to merge 10 commits into
go-gitea:mainfrom
Zettat123:disable-2fa-cmd
Open

feat: add disable-2fa command#38275
Zettat123 wants to merge 10 commits into
go-gitea:mainfrom
Zettat123:disable-2fa-cmd

Conversation

@Zettat123

Copy link
Copy Markdown
Contributor

This PR adds the gitea admin user disable-2fa command to disable 2FA for a user

When the only admin in the instance loses their 2FA credentials, this command can be used to disable 2FA, allowing them to log in and reset it.

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Jun 29, 2026
@github-actions github-actions Bot added the type/feature Completely new functionality. Can only be merged if feature freeze is not active. label Jun 29, 2026
@GiteaBot GiteaBot added lgtm/need 1 This PR needs approval from one additional maintainer to be merged. and removed lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. labels Jun 29, 2026
Comment thread cmd/admin_user_disable_2fa.go Outdated
Comment thread models/auth/twofactor.go Outdated
@GiteaBot GiteaBot added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Jun 30, 2026
@lunny lunny added the reviewed/wait-merge This pull request is part of the merge queue. It will be merged soon. label Jun 30, 2026
@lunny lunny modified the milestones: 1.27.0, 1.28.0 Jun 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. reviewed/wait-merge This pull request is part of the merge queue. It will be merged soon. topic/authentication type/feature Completely new functionality. Can only be merged if feature freeze is not active.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants