OSC ADMIN LOGIN ERROR

Closed Posted 4 years ago Paid on delivery
Closed Paid on delivery

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

Project ID: #22637350

About the project

4 proposals Remote project Active 4 years ago

4 freelancers are bidding on average $30 for this job

AndrwProjects

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

$30 USD in 3 days
(310 Reviews)
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 More

$30 USD in 3 days
(35 Reviews)
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 in 2 days
(1 Review)
2.5