Login via URL, is it possible?

Danny

Joined: 2003-03-24
Posts: 90
Posted: Wed, 2003-10-08 17:54

Hi,
I want to login my User with an URL from within Xaraya. Is it possible to login to Gallery with an URL variable, instead of a form?

How must be login.php changed, that it accepts Username and Password via URL?

Security is not a concern for me, because the login.php will not be accessed via a link, instead I will open it via the Xaraya API, so the user sees no username or password which will be used.

Thanks in advance,

Danny

 
joan
joan's picture

Joined: 2002-10-21
Posts: 3473
Posted: Thu, 2003-10-09 14:40

Sure, you can do that:

http://www.example.com/login.php?uname=UNAME&gallerypassword=SECRET&login=Login

But when you embedding in a CMS, the assumption is that you will use the database of the CMS, and not explicitly log into gallery.

 
Danny

Joined: 2003-03-24
Posts: 90
Posted: Fri, 2003-10-10 07:06

Hi Joan, thank you for your fast answer. As there is up to now no Gallery version avaible for the integration with the CMS Xaraya I come up with this solution which works for me perfectly. This is the easiest solution for me. I have no usernames in Gallery, instead I use a username for the whole group which I defined in Xaraya.

with best wishes,

Danny

 
joan
joan's picture

Joined: 2002-10-21
Posts: 3473
Posted: Fri, 2003-10-10 08:55