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
|
@ -99,5 +99,10 @@ func TestSettingLandingPage(t *testing.T) {
|
|||
resp = MakeRequest(t, req, http.StatusFound)
|
||||
assert.Equal(t, "/explore/organizations", resp.Header().Get("Location"))
|
||||
|
||||
setting.LandingPageURL = setting.LandingPageLogin
|
||||
req = NewRequest(t, "GET", "/")
|
||||
resp = MakeRequest(t, req, http.StatusFound)
|
||||
assert.Equal(t, "/user/login", resp.Header().Get("Location"))
|
||||
|
||||
setting.LandingPageURL = landingPage
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue