OSC ADMIN LOGIN ERROR

Lukket Lagt ut 4 år siden Betales ved levering
Lukket Betales ved levering

Problem

i can login to php 5 with md5 but not with tep_encrypt_password

i can login to php 7 with tep_encrypt_password but not with md5

What i need

i want to be able to login to both php 5 and php 7 with md5 or tep_encrypt_password or any other encryption that will work.

I have 2 systems one is php 5 and one is php 7 but i use both and will continue using both for the foreseeable future.

just now i have to pick one admin to use.

the files i added above are using tep_encrypt_password but dont work

they only work if i use md5

please help

as i say tep_encrypt_password works fine on php 7

is there something im missing

the files attached are the only ones controlling login.

the file [login to view URL]

has the following lines which cause error and cant login

$aResult = tep_db_query( "select id from " . TABLE_ADMINISTRATORS . " where user_name = '". $username ."' and user_password = '". tep_encrypt_password($password)."'" );

it works with

$aResult = tep_db_query( "select id from " . TABLE_ADMINISTRATORS . " where user_name = '". $username ."' and user_password = '". md5($password)."'" );

i then need to set password in db as md5

but this then means i cant login to php 7 admin as it uses tep_encrypt_password

i tried changing it to md5 and not work so im stuck

i need to login to both

plz help

PHP MySQL JavaScript HTML OSCommerce

Prosjekt-ID: #22637350

Om prosjektet

4 bud Eksternt prosjekt Aktiv 4 år siden

4 frilansere byr i gjennomsnitt $30 for denne jobben

AndrwProjects

Hi. Do you tried to do both checks md5 & tep_encrypt_password?

$30 USD på 3 dager
(310 Omtaler)
7.1
overtservices

Hello, Happy Greetings!! I have looked your job description and I’m interested to do your project as I have 8+ years of experience in “web development and designing”. So, I think that I have all the skills you’re look Mer

$30 USD på 3 dager
(35 Omtaler)
5.1
JHuotari

There is a small mistake in a_login.php. I can help you fix it. After that it will work fine on both php5 and php7.

$30 USD på 2 dager
(1 anmeldelse)
2.5