summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
author6543 <6543@obermui.de>2021-01-05 13:54:48 +0000
committerGitHub <noreply@github.com>2021-01-05 14:54:48 +0100
commit325add71cfa3789b5e7ecf40bfe25376981654a7 (patch)
tree92258a4d0407277d9cc1183519c7bcddd42eda8c /modules
parent15a475b7dbcf7923d9518dff7764b20e404eb774 (diff)
downloadgitea-325add71cfa3789b5e7ecf40bfe25376981654a7.tar.gz
gitea-325add71cfa3789b5e7ecf40bfe25376981654a7.zip
Add option for administrator to reset user 2FA (#14243)
* Frontend * Backend * only show 2FA-Reset option if posible
Diffstat (limited to 'modules')
-rw-r--r--modules/auth/admin.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/auth/admin.go b/modules/auth/admin.go
index 9caf81e07f..1f840251c7 100644
--- a/modules/auth/admin.go
+++ b/modules/auth/admin.go
@@ -42,6 +42,7 @@ type AdminEditUserForm struct {
AllowImportLocal bool
AllowCreateOrganization bool
ProhibitLogin bool
+ Reset2FA bool `form:"reset_2fa"`
}
// Validate validates form fields