Home  >  Q&A  >  body text

Entering the correct password still shows the wrong password

This is the code

if(md5($admin['username'].$pwd) != $admin['password'])

{

exit(json_encode(array('code' => 1,'msg' => 'Wrong password')));

}

After commenting, the login was successful


我爱Java我爱Java2451 days ago1597

reply all(4)I'll reply

  • Ayu_

    Ayu_2019-07-27 16:09:04

    How to change

    reply
    0
  • ㅤ

    2018-08-21 09:42:57

    How to solve it in the end


    reply
    0
  • 小明同学ROCK

    小明同学ROCK2018-03-02 02:48:55

    The encrypted content may be inconsistent with the content or number of digits of the password saved in the database.

    reply
    0
  • PHP中文网

    PHP中文网2018-02-21 12:05:28

    Compare two values

    reply
    0
  • Cancelreply