mirror of
https://gitee.com/gitea/gitea
synced 2025-11-12 12:30:25 +08:00
Add option for administrator to reset user 2FA (#14243)
* Frontend * Backend * only show 2FA-Reset option if posible
This commit is contained in:
@@ -42,6 +42,7 @@ type AdminEditUserForm struct {
|
||||
AllowImportLocal bool
|
||||
AllowCreateOrganization bool
|
||||
ProhibitLogin bool
|
||||
Reset2FA bool `form:"reset_2fa"`
|
||||
}
|
||||
|
||||
// Validate validates form fields
|
||||
|
||||
Reference in New Issue
Block a user