Search…

X3 Photo Gallery Support Forums

Search…
 
johnallan
Topic Author
Posts: 14
Joined: 23 Jul 2009, 12:13

Pass admin login/password on browser url

27 Jul 2009, 13:48

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
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14452
Joined: 30 Sep 2006, 03:37

03 Aug 2009, 08:53

I dont think thats possible - Anyway, you just log once, and you will stay logged in ...
 
johnallan
Topic Author
Posts: 14
Joined: 23 Jul 2009, 12:13

03 Aug 2009, 12:20

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
 
User avatar
McArrow
Imagevue Developer
Posts: 12
Joined: 29 Jun 2008, 14:50

04 Aug 2009, 12:15

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.