Re: "Not active" in Login Admin file allowing access
Posted: Tue Jun 05, 2018 7:31 am
So if I rearrange it so that the active field is number five, that should resolve things?
I do still have active as 5, though starting with 0 that probably means it is really 6
This is my amended coding:
$values = explode('|', trim($line));
$values[0] = $_POST['login'];
if (!empty($_POST['password']))
{
$values[1] = md5($_POST['password']);
}
$values[2] = $_POST['email'];
$values[3] = $_POST['firstname'];
$values[4] = $_POST['surname'];
$values[5] = $_POST['active'];
With corresponding amendment elsewhere.
Would simply moving the active field work so that, for example, I have (1) User name,(2) First name, (3) Surname, (4) Email, (5) Active with the hidden password field for the sixth one?
You have asked which version I have, but where is that shown? As I have said I downloaded it on 4th June, but these files were already in existence then. When I look at the About tab it just has Version 14 (May 7 2018), as here.
Anyway, these files were produced in an earlier version.
I do still have active as 5, though starting with 0 that probably means it is really 6
This is my amended coding:
$values = explode('|', trim($line));
$values[0] = $_POST['login'];
if (!empty($_POST['password']))
{
$values[1] = md5($_POST['password']);
}
$values[2] = $_POST['email'];
$values[3] = $_POST['firstname'];
$values[4] = $_POST['surname'];
$values[5] = $_POST['active'];
With corresponding amendment elsewhere.
Would simply moving the active field work so that, for example, I have (1) User name,(2) First name, (3) Surname, (4) Email, (5) Active with the hidden password field for the sixth one?
You have asked which version I have, but where is that shown? As I have said I downloaded it on 4th June, but these files were already in existence then. When I look at the About tab it just has Version 14 (May 7 2018), as here.
Anyway, these files were produced in an earlier version.