forked from forgejo/forgejo
Add option for administrator to reset user 2FA (#14243)
* Frontend * Backend * only show 2FA-Reset option if posible
This commit is contained in:
parent
15a475b7db
commit
325add71cf
4 changed files with 35 additions and 0 deletions
|
@ -42,6 +42,7 @@ type AdminEditUserForm struct {
|
|||
AllowImportLocal bool
|
||||
AllowCreateOrganization bool
|
||||
ProhibitLogin bool
|
||||
Reset2FA bool `form:"reset_2fa"`
|
||||
}
|
||||
|
||||
// Validate validates form fields
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue