Login or Register

RSS IconRecent posts in this topic

avatar
BlueSky on Mar 22. 2008. 6:44 pm
I see directions to a class for the .7x version of this but not 1.x. I see the AuthController.Class.php and see that logout goes to login. What specifically do I change to direct it to a specific url?

I also tried creating a new map classs to assist e.g. in the routes but not sure how to encode a URL..

examples: Changed
AuthController.Class.php to be

 $this->redirectTo('logout2');
    } // logout



and then in the routes.php added a new line at the bottom:

$this->map('logout2','logout.htm');


When I logout I get this URL:

[domainname]projects/public/index.php/logout%5C.htm

I think I am close but obviously not quite there...can someone assist? :)

I have modified the login to go from our company's web site into AC and wish to return there upon logout.
avatar
Oliver Maksimović on Mar 23. 2008. 10:26 am
Use:
$this->redirectoToUrl('http://www.yourwebsite.com');

...if you want to redirect to another URL ("outside" activeCollab app).
activeCollab team member, too ;)
avatar
BlueSky on Mar 23. 2008. 3:59 pm
Thanks Oliver!
avatar
BlueSky on Apr 10. 2008. 10:39 pm
One more question Oliver...so sometimes AC breaks and we are automatically kicked out to the default AC login page -- not to the redirect URL. Is there a way to alter the above code so it will always come back to our login page (as opposed to AC's)?

If the program is running and we click the logout the above code works great -- it is only when something happens that it doesn;'t and this happens at least once a day...e.g. we go to download more than one file and the first goes fine but for the second one we get kicked out...
avatar
yuranga on May 7. 2008. 2:24 am
Thanks for the info save us some time. :)
avatar
BlueSky on Jun 4. 2008. 3:38 pm
This redirect no longer works under v1.1.1

Is there some new code that will do the same thing?
avatar
Ilija Studen on Jun 4. 2008. 3:42 pm
You probably overwritten your hack when you upgraded to v1.1.1. Instructions are the same (maybe line of code changed, but it's the same procedure as with v1.0.6).
activeCollab team member
avatar
BlueSky on Jun 4. 2008. 4:01 pm
Thanks. Missed a ")"

RSS IconRecent posts in this topic