Project

General

Profile

I want to change the home page to login page. Can somebody help me regarding this?

Added by gurushant birajdar over 12 years ago

I want to change the home page to login page. and once user logged in the normal home page shoul be displayed.
I am finding it very difficult to trace how the pages are linked and how to change it.
Please tell me the proper way to perform above behaviour and how to trace the pages in redmin.


Replies (9)

RE: I want to change the home page to login page. Can somebody help me regarding this? - Added by Ivan Cenov over 12 years ago

Edit path\to\redmine\config\routes.rb :

map.home '', :controller => 'welcome'
to
map.home '', :controller => 'account', :action => 'login'
This works on my test installation 1.2.1, Rails 2.3.14.

Ivan

RE: I want to change the home page to login page. Can somebody help me regarding this? - Added by Ivan Cenov over 12 years ago

Oooooooooopssss, this always redirects to the login page ....
It does NOT works.
Excuse me for the spam.... :(

RE: I want to change the home page to login page. Can somebody help me regarding this? - Added by Mischa The Evil over 12 years ago

gurushant birajdar wrote:

I want to change the home page to login page. and once user logged in the normal home page shoul be displayed.

This can be achieved easily by enabling the "Authentication required" setting.

RE: I want to change the home page to login page. Can somebody help me regarding this? - Added by gurushant birajdar over 12 years ago

Hey Ivan,

One more question. Can you please help me, I want to display only those projects on my home page which are assigned to logged in, not all projects.

RE: I want to change the home page to login page. Can somebody help me regarding this? - Added by gurushant birajdar over 12 years ago

gurushant birajdar wrote:

Hey Thanks a lot Ivan. It works. I needed the same behavior.

RE: I want to change the home page to login page. Can somebody help me regarding this? - Added by Ivan Cenov over 12 years ago

Hmm..., I think the proposed by Mischa The Evil is the right solution.

RE: I want to change the home page to login page. Can somebody help me regarding this? - Added by Elsa LSA over 12 years ago

Cool..thanks for sharing the solution and it help me a lots:)

RE: I want to change the home page to login page. Can somebody help me regarding this? - Added by gurushant birajdar over 12 years ago

map.home 'home', :controller => 'welcome'
map.home '', :controller => 'account', :action => 'login'

add these both lines, so that u will get the login page only on first visit.

    (1-9/9)