Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DISABLE_2FA parameter for disabling 2FA added #18481

Closed
wants to merge 1 commit into from

Commits on Jan 31, 2022

  1. DISABLE_2FA parameter for disabling 2FA added

    Gitea does not use 2FA when reverse proxy auth is enabled. 2FA is hardcoded
    and cannot be disabled (i.e. when stronger authentication scheme is
    implemented on reverse proxy). Leaving unused elements like 2FA in UI should
    be avoided to make UI clean and to avoid unnecessarry maintanance
    (questions/problems from users).
    
    This mod introduces new `DISABLE_2FA` parameter in app.ini section
    `[security]`. When disabled (default when parameter is not present) gitea
    behaves as without this mod (2FA is available). When enabled, 2FA feature
    and its UI elements are not avaiable.
    
    This mod also hides those areas on Settings/Security page that are
    disabled in config and hides menu link to Security page if all its areas
    are disabled in config.
    
    Related: go-gitea#13129
    Author-Change-Id: IB#1115243
    pboguslawski committed Jan 31, 2022
    Configuration menu
    Copy the full SHA
    3ddaba1 View commit details
    Browse the repository at this point in the history