Skip to content

Option to show login page instead of home page #9597

Closed
@timonegk

Description

@timonegk
  • Gitea version (or commit ref): 1.10.1

Description

In my use case, the user must always be logged in to use my gitea instance, there are no public repositories. Therefore I would like to let the user always land on the login page when they are not logged in. When they are logged in, they should be redirected to their home page, as usual.
Currently, the closest I can get there is by setting LANDING_PAGE = explore – this redirects unauthenticated users to the login page, but authenticated users are of course redirected to the explore page. Setting LANDING_PAGE = home shows the Gitea start page instead of the login page to unauthenticated users.
Am I missing a setting or is it not implemented?

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/enhancementAn improvement of existing functionalitytype/proposalThe new feature has not been accepted yet but needs to be discussed first.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions