MySQL Forums
Forum List  »  PHP

Re: mysql_connect() error
Posted by: Peter Brawley
Date: June 10, 2014 02:52PM

> Is there a way to test that I no more allow empty password connect calls

Have the login page post to itself, and in the loop that does that processing, ensure that before any login is attempted, the length of the password string entered meets your minimum requirement, and that the password entered matches a user & password in your app's user table (NOT the mysql.user table).

and preferably one of the following ...

- Write a javascript func that's called on the onblur event of the password field

- Write an AJAX validator func that's called on the onblur event of the password field

Options: ReplyQuote


Subject
Written By
Posted
June 10, 2014 12:47PM
Re: mysql_connect() error
June 10, 2014 02:52PM
June 10, 2014 10:32PM
June 12, 2014 11:44PM
June 13, 2014 04:15PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.