search

Home  >  Q&A  >  body text

Why does it always show wrong password?

if(MD5($admin['username'].$pwd) != $admin['password']){ exit(json_encode(array('code'=>1,'msg'=>' wrong password'))); }

晴天晴天1180 days ago901

reply all(3)I'll reply

  • autoload

    autoload2021-10-12 09:19:03

    First check if $admin['username'].$pwd is passed in correctly, then print them out separately and compare them manually

    reply
    0
  • Cancelreply