• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

[PHP] Config and Functions !

cremes

New Member
Joined
Oct 12, 2012
Messages
69
Reaction score
2
Hi.

i have problem. i got in config and function set encryption to "plain" and my passwords in database are sha1.
when i change it for :

//return password to db
function password_ency($password)
{
$ency = $GLOBALS['config']['server']['encryptionType'];
if($ency != 'sha1')
return hash($ency, $password);
elseif($ency == 'sha1')
return $password;

i cant login to my acc, so i try create new account. and i saw in my mysql database password is normal plain...

some1 can me where is my fault ?
 
Back
Top