forked from NYANDEV/forgejo
Add a /user/login landing page option (#9622)
* Add a /user/login landing page option * Add test case for login landing page
This commit is contained in:
parent
bcac7cb934
commit
abc0f53539
4 changed files with 11 additions and 2 deletions
|
@ -54,6 +54,7 @@ const (
|
|||
LandingPageHome LandingPage = "/"
|
||||
LandingPageExplore LandingPage = "/explore"
|
||||
LandingPageOrganizations LandingPage = "/explore/organizations"
|
||||
LandingPageLogin LandingPage = "/user/login"
|
||||
)
|
||||
|
||||
// enumerates all the types of captchas
|
||||
|
@ -648,6 +649,8 @@ func NewContext() {
|
|||
LandingPageURL = LandingPageExplore
|
||||
case "organizations":
|
||||
LandingPageURL = LandingPageOrganizations
|
||||
case "login":
|
||||
LandingPageURL = LandingPageLogin
|
||||
default:
|
||||
LandingPageURL = LandingPageHome
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue