Welcome Guest, Not a member yet? Register   Sign In
Extending FAL (generate bulk-users)
#1

[eluser]Unknown[/eluser]
Hi,
first off: FAL is awesome, great timesaver, my compliments

My problem:

I'd like to import users from an external user_table into the fa_user-table.

This works fine, I've copied the default fal_class: freakAuth_light.php, function:_encode() below (copied it to my own model.php), but I must be missing something because when I try to login (frontend) with the (manually) generated username/pwd, they are not accepted.

When I generate a new password with the FAL_frontend with the same username / password-values I found out that the FAL_frontend-generated password is different then the password generated just by using the _encode()-function.

Any experts on this?

thanks in advance

used function (copy of Freakauth_light.php::_encode()):

function nieuwPWD($password)
{
$majorsalt=null;
$_password=$password;

// if PHP5
if (function_exists('str_split'))
{
$_pass = str_split($_password);
}
// if PHP4
else
{
$_pass = array();
if (is_string($_password))
{
for ($i = 0; $i < strlen($_password); $i++)
{
array_push($_pass, $_password[$i]);
}
}
}

// encrypts every single letter of the password
foreach ($_pass as $_hashpass)
{
$majorsalt .= md5($_hashpass);
}

// encrypts the string combinations of every single encrypted letter
// and finally returns the encrypted password
return $password=md5($majorsalt);

}




Theme © iAndrew 2016 - Forum software by © MyBB