Page 1 of 1

Pass admin login/password on browser url

Posted: 27 Jul 2009, 13:48
by johnallan
Is it possible to pass the admin login and password on the browser url, to automate the admin login process?

ie. ?login=admin&password=admin

Thanks,
John

Posted: 03 Aug 2009, 08:53
by mjau-mjau
I dont think thats possible - Anyway, you just log once, and you will stay logged in ...

Posted: 03 Aug 2009, 12:20
by johnallan
mjau-mjau wrote:I dont think thats possible - Anyway, you just log once, and you will stay logged in ...
Unfortunately, it's unacceptable to have to login twice with my use (once for Joomla and once for the imagevuex manager), which is running the manager embedded within Joomla.

I now have your manager authorizing joomla login credentials (that are passed on the url), via a mySQL query to the Joomla database.

The problem that I am still having is with your routing. Although I inherited your ivUserManager just fine and their were minor code changes within index.php to instantiate the inherited userManager object: Imagevuex manager still insists on displaying the login box, even though the credentials are validated and it says "Welcome John".
But, I can't seem to skip the login box and go right to the manager screen now.

Thanks,
John

Posted: 04 Aug 2009, 12:15
by McArrow
As you must understand, it's unsecure to pass login and password through GET request ('cause in this case your credentials will be stored in browser history). And we don't recommend you to change sources of Imagevue because you'll have problems while upgrading to new versions.

So the best solution for you is to set correct account cookie. You can use ivAuth::authenticate() method for this purpose or create a cookie manually by using php setcookie() function.