Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum
https://www.tinywebgallery.com/forum/

Can I log into a gallery using an external web form?
https://www.tinywebgallery.com/forum/viewtopic.php?f=1&t=5624
Page 1 of 1

Author:  btonbadger [ 19. Dec 2018, 19:20 ]
Post subject:  Can I log into a gallery using an external web form?

Hi,

On my homepage (which is different to the tinywebgallery page) I'd like to run a form to log into the password protected albums. I can't seem to see where the password popup lives in the code to be able to replicate it so would like to use something like this if possible?

Code:
<form action="index.php" method="post">
<input type="text" name="twg_private_login" class="form-control" placeholder="Type password here...">
<button class="btn btn-secondary" type="submit" value="submit">Enter Photo Albums</button>
</form>


I thought I could link to a simple password protected album like this...

https://domainname/index.php?twg_private_login=password but that does not work either.

Where am I going wrong? How can I achieve my goal?

Cheers

BBadger

Author:  TinyWebGallery [ 20. Dec 2018, 08:45 ]
Post subject:  Re: Can I log into a gallery using an external web form?

have you set $enable_external_privategal_login=true?

And I would recommend a post because otherwise your pw will be in the logs of the webserver!

Best, Michael

Author:  btonbadger [ 20. Dec 2018, 11:45 ]
Post subject:  Re: Can I log into a gallery using an external web form?

Ah, no I hadn't. Brilliant that works thanks for your help and prompt response! :D

BBadger

Author:  TinyWebGallery [ 20. Dec 2018, 15:49 ]
Post subject:  Re: Can I log into a gallery using an external web form?

;).

Page 1 of 1 All times are UTC + 1 hour [ DST ]
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/