View Single Post
Old 05-20-2017, 10:30 PM   #1539
MontyJ
Addict
MontyJ began at the beginning.
 
Posts: 224
Karma: 10
Join Date: Jul 2012
Device: Kindle
Question

I now have a basic install of V1.1.1 installed and working.

But I really need to find out if this version handles setting on a per user basis; all wiki's say it will, but this one has a specific mention of fixes to that in the changelog.

So here is my entry for basic cops authentication of a single user:

Code:
$config['cops_basic_authentication'] = array('username' => 'monty', 'password' => 'mypassword');
When I open cops locally, up pops the Authentication login form. I enter my username and password, but it just keeps recycling, refreshing to a blank form.

I have changed the single quote marks to double-quote marks, but it doesn't change anything. So I'm guessing my format for the array is wrong. Here is what the docs say:
Code:
    /*
     * Enable PHP password protection (You can use if htpasswd is not possible for you)
     * If possible prefer htpasswd !
     * array( "username" => "xxx", "password" => "secret") : Enable PHP password protection
     * NULL : Disable PHP password protection (You can still use htpasswd)
     */
Ok, what am I staring at but missing?
MontyJ is offline   Reply With Quote