i need to enhance the existing code to add on the user locked if the user failed 3 times... even after they enter the username & password, the system should track whether the user have been tried to login before... once it have been try for three times, the user should be locked by system , administrator should unlock the user account.. please help me... thanks...
priya2278
0
Newbie Poster
Recommended Answers
Jump to PostAre you using any database? Are you keeping the details of user name and password in DB?
Jump to Postyou need to store user details in DB.
1. check the status of the use account with each login.
2. increment the counter by 1 with each failed login.
3. update the status of the user to locked once the counter reaches 3.
Jump to PostYes as debasis said, Have one column like Status or somthing, Update it to Incactive if attemt reaches to 3+ and check this status while ur doing validation when user hits on logon button. If Status is Inactive give message and exit..
All 12 Replies
Pgmer
50
Master Poster
Featured Poster
debasisdas
580
Posting Genius
Featured Poster
priya2278
commented:
Thanks a lot...its really helpful..
+0
priya2278
0
Newbie Poster
debasisdas
580
Posting Genius
Featured Poster
Pgmer
50
Master Poster
Featured Poster
debasisdas
580
Posting Genius
Featured Poster
emond
0
Newbie Poster
OblibSystems
12
Junior Poster in Training
reshmika
0
Newbie Poster
s56labs
0
Newbie Poster
s56labs
0
Newbie Poster
Allyson_1
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.