Has anyone tried creating a custom login page where you can chose if you are a customer or agent and then the page redirects to the appropriate portal?
Save having to type in the customer.pl or index.pl
Malcolm
Custom Login Page
Moderator: crythias
-
- Moderator
- Posts: 10170
- Joined: 04 May 2010, 18:38
- Znuny Version: 5.0.x
- Location: SouthWest Florida, USA
- Contact:
Re: Custom Login Page
Your suggestion is easy enough, depending on what you present to your users as your logon page.
viewtopic.php?t=12714&p=49585
Code: Select all
<a href="/otrs/index.pl">I'm an agent</a><br /><a href="/otrs/customer.pl">I'm a customer</a>
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
-
- Znuny newbie
- Posts: 21
- Joined: 07 Dec 2011, 22:47
- Znuny Version: 3.0.11
- Real Name: Malcolm Bartlett
- Company: CANARIE
- Location: Ottawa, ON, Canada
- Contact:
Re: Custom Login Page
Looks great (the link also) but consider me a programming newborn. I can work my way around but where would I be putting this code? In the index.pl file? Or in the .dtl file that you mentioned in the other post. What would the code from the other post accomplish? Where would that also need to be placed.
Sorry to bug you with such trivial questions.
Malclm
Sorry to bug you with such trivial questions.
Malclm
Re: Custom Login Page
Hi mbartle,mbartle wrote:Looks great (the link also) but consider me a programming newborn. I can work my way around but where would I be putting this code? In the index.pl file? Or in the .dtl file that you mentioned in the other post. What would the code from the other post accomplish? Where would that also need to be placed.
Sorry to bug you with such trivial questions.
Malclm
I had the same problem that you and solved it today.
What I did was to modify the form in the login.dtl file so that we show a dropdown box with 2 selections, agent and customer, after writing user and pwd and choosing, you are logged in the correct page.
If you need more details let me know and I explain you the process, is very easy!
OTRS 3.0.11 and KIX4OTRS on Linux
Re: Custom Login Page
I achieved to have a single page for login, but now I have a little problem.crythias wrote:Your suggestion is easy enough, depending on what you present to your users as your logon page.viewtopic.php?t=12714&p=49585Code: Select all
<a href="/otrs/index.pl">I'm an agent</a><br /><a href="/otrs/customer.pl">I'm a customer</a>
When I ínsert a false pwd or customer id and try to login as a customer, I get automatically in the customer.pl page indicating that the login failed, but I'd like to show this message in the index.pl without being redirect to the customer.pl page.
How can I achieve that?
Thank you very much,
Rafa
OTRS 3.0.11 and KIX4OTRS on Linux
-
- Znuny newbie
- Posts: 21
- Joined: 07 Dec 2011, 22:47
- Znuny Version: 3.0.11
- Real Name: Malcolm Bartlett
- Company: CANARIE
- Location: Ottawa, ON, Canada
- Contact:
Re: Custom Login Page
Thanks Rafaqf
If you could just post the code you put in that login.dtl file that would be awesome.
Malcolm
If you could just post the code you put in that login.dtl file that would be awesome.
Malcolm
-
- Znuny newbie
- Posts: 21
- Joined: 07 Dec 2011, 22:47
- Znuny Version: 3.0.11
- Real Name: Malcolm Bartlett
- Company: CANARIE
- Location: Ottawa, ON, Canada
- Contact:
Re: Custom Login Page
Also,
Where is the login.dtl file? Did a search and could not find.
Malcolm
Where is the login.dtl file? Did a search and could not find.
Malcolm