PHP AJAX login, is this method secure?

前端 未结 5 1952
醉酒成梦
醉酒成梦 2020-12-30 17:02

I have just started PHP and mySQL and need to know if this is \"safe\". The login information is passed into the following PHP file through AJAX (jQuery).

jQuery AJA

5条回答
  •  时光说笑
    2020-12-30 17:42

    Also never tell user things like "user doesn't exist" or "incorrect password". It's much better if you just print out "Incorrect username or password" so everyone cannot check for existing usernames and then try to guess password for these.

提交回复
热议问题