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
Posts: 3473
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.
Posts: 90
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
Posts: 3473
Did you read this tutorial?
http://gallery.menalto.com/index.php?name=PNphpBB2&file=viewtopic&t=8638