go-gitea/gitea

A configuration option to force all users to have 2fa enabled

Closed this issue · 3 comments

Feature Description

Would be very good to have a configuration option that forces ALL users to have 2fa enabled.

Screenshots

No response

I think this is implemented already?

;; Set the two-factor auth behavior.
;; Set to "enforced", to force users to enroll into Two-Factor Authentication, users without 2FA have no access to repositories via API or web.
;TWO_FACTOR_AUTH =

I think this is implemented already?

gitea/custom/conf/app.example.ini

thanks, trying it now.

yes, it works, thanks a lot! for some reason i did not notice this configuration option.