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

Brainfade - Trying to get standalone auth to work.
https://www.tinywebgallery.com/forum/viewtopic.php?f=12&t=2882
Page 1 of 1

Author:  callumw [ 23. Jan 2011, 20:21 ]
Post subject:  Brainfade - Trying to get standalone auth to work.

Hi
I purchased the TFU and am using it in standalone mode (pro license)

I created a new subdomain and all the 2.12.1 files are uploaded to the root of that directory, so no .htaccess issues of any kind.
I've played with the config file and php.ini so it's all set it up to upload files (only) and it all works perfectly .....

Until I try to set up authentication.

I create a user in the .htusers file and use the password_generator to create the long string encrypted password and leave the rest as default.

Files uploaded and refresh the browser .... prompt for user/password.
I enter the name/auth and it fails with "You are trying to use the TWG Upload Flash without authentication, the server login failed, expired or the configuration could not be found"

I tries test/test, but the results are the same.

It all seemed very straight forward up until this point
I searched on here, but found nothing, read and re-read the faq..

Am I missing something obvious? ... chmod or .htaccess for the .htuser file or something like that?

Thanks in advance
CW

Author:  callumw [ 23. Jan 2011, 20:52 ]
Post subject:  Re: Brainfade - Trying to get standalone auth to work.

Oh ffs!!!!

Fixed it.
In the htuser file it shows:
$GLOBALS["users"]=array(
array("test","xxxx","upload","","")
);

I created a new line for the new user BUT .... I didn't spot that I needed to ad a comma (,) at the end of the first array.

$GLOBALS["users"]=array(
array("test","xxxx","upload","",""), <---- there
array("newuser","xxxx","upload","true","true")
);

Works now :roll:

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