Mark Lubratt
2008-10-07 15:21:12 UTC
Hello!
I'm trying to clean up the login procedures on my application.
Currently, the program logs in to the database using a low privilege
user to retrieve the list of authorized users. This is presented to
the user on a login screen and prompted for their password. The
application then disconnects from the database and attempts to re-
connect using the new information (user and password). If the
password is wrong, I get a dialog box saying that the connection was
lost and a paragraph about whether or not it is actually an error.
Where is this dialog box coming from? I have AutoDialog=False in the
constructor of the socket. I'd like to keep track of the number of
login attempts and quit the application after a set number of tries.
This dialog is getting in the way of my efforts. Does anyone know how
to disable this dialog? Or, am I possibly doing something wrong in my
coding causing this to appear?
Thanks!
Mark
I'm trying to clean up the login procedures on my application.
Currently, the program logs in to the database using a low privilege
user to retrieve the list of authorized users. This is presented to
the user on a login screen and prompted for their password. The
application then disconnects from the database and attempts to re-
connect using the new information (user and password). If the
password is wrong, I get a dialog box saying that the connection was
lost and a paragraph about whether or not it is actually an error.
Where is this dialog box coming from? I have AutoDialog=False in the
constructor of the socket. I'd like to keep track of the number of
login attempts and quit the application after a set number of tries.
This dialog is getting in the way of my efforts. Does anyone know how
to disable this dialog? Or, am I possibly doing something wrong in my
coding causing this to appear?
Thanks!
Mark