Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MySQL Account lockout policy

Status
Not open for further replies.

olsen6228

IS-IT--Management
Jun 23, 2005
1
US
My Project X uses MySQL to authenticate users to access the secure web application that we have. Currently, there is no limit on how many tries a user has to get into the system. Is there a way to implement an account lockout after so many retries before the account needs to be
reset? Any help would be appreciated.

Thanks much !!
 
why not add a column to the user table to store the login attempt count? i do this in my applications. with each attempt i increment the counter. upon successful validation, if they are over the threshold i tell them they are locked, otherwise i reset the counter to zero.



-jeff
try { succeed(); } catch(E) { tryAgain(); } finally { rtfm(); }
i like your sleeves...they're real big
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top