avatar Ilija Studen Staff Jan 15. 2008. 4:42 am
Update:

This information has been extended and moved in Integrating activeCollab Login with Your Website article in Developer's Manual. Please check it out and note that only that article will be kept up to date.

-------------------------

Original Post:

If you need to provide a custom login form (from your website or something like that) you can do it by creating a form that submits a POST request to login page with following fields:

- login[email]
- login[password]
- login[remember]

and hidden field name submitted with value submitted. Here is a simple form that can log you in our trial setup:

<form method="post" action="http://www.activecollab.com/try/login">
  Email: <input type="text" name="login[email]" />
  Password: <input type="password" name="login[password]" />
  Remember me: <input type="checkbox" name="login[remember]" />
  <input type="hidden" name="submitted" value="submitted" />
  <button type="submit">Go baby go!</button>
</form>
avatar davidm Pro Feb 1. 2008. 11:35 am
Very nice Ilija, it sure is going to be useful !
I'll provide my clients with a form on my company's website for direct access :)

I'll try that out !
The best way to predict the future is to invent it
------------------------------------------
Apache 2.2.8 - MySQL 5.0.45 - PHP 5.2.6 | Debian 4.0 (Etch)
avatar vexxmedia Feb 22. 2008. 10:21 am
Does this work with 0.7.1? I am trying to get it to work but there is no login folder or php file what address should I be using?
http://www.sitename.com/projects/index.php?c=access&amp;a=login???
avatar Ilija Studen Staff Feb 22. 2008. 11:25 am
This tip is for v1 or newer only.
avatar BlueSky Pro Apr 5. 2008. 12:34 am
I am using the above redirect and it works well and the logout I also have redirecting. However at least once a day the program exists gracefully by itself and brings us to another login page e.g. http://www.domainnamehere/projects/public/index.php/login?re_route=project_tickets&re_project_id=1

Where do we alter the code so that when the system quits by itself it brings it back to our own login URL?
avatar Ilija Studen Staff Apr 5. 2008. 2:19 am
Technically, activeCollab uses only one login screen - it's own. What you added is just a form that sends data to activeCollab, not a full login screen replacement. There is no way to completely replace login screen without serious hacking (that you'll need to reapply every time you upgrade your activeCollab).
avatar yuranga Pro May 6. 2008. 9:25 pm
Thank you for sharing it.
avatar MichaelMichael Pro Aug 11. 2009. 1:35 am
Ilijah,

Will this work for the most recent versions of AC?

Let me know,

Michael
avatar Goran Radulović Staff Aug 14. 2009. 8:35 am
Michael,

This should work for all versions since 1.0.
Goran Radulovic
A51 DOO | Cofounder

http://www.a51dev.com/
http://www.activecollab.com/
avatar john Pro Dec 30. 2009. 8:54 am
I'm sure you all knew this, but I was very happy to discover that I can modify this to set a custom landing page for the users.

In my example I want all users to land at the "Assignments" page when they log in. This way, they can quickly see what they have on their plate, as the first thing they see.

My "modification" was only to change the URL. The way I found the url, was by
#1. Going to the page I want the users to land on.
#2. Copy the URL
#3. Log out
#4. Paste the URL back in the browser and try again
#5. AC now takes me to the login screen, but has added a route handler to the URL.

So the modified form looks like this for me:

<form method="post" action="http://domain.activecollab.net/login?re_route=assignments">
Email: <input type="text" name="login[email]" />
Password: <input type="password" name="login[password]" />
Remember me: <input type="checkbox" name="login[remember]" />
<input type="hidden" name="submitted" value="submitted" />
<button type="submit">Login!</button>
</form>
or Go To Next Page