This week's book giveaway is in the Cloud/Virtualizaton forum.
We're giving away four copies of Mesos in Action and have Roger Ignazio on-line!
See this thread for details.
Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

i need help on loggin account limit

 
muntago Richard
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Good day everyone, This code updates or counts the number of times users logged in. I want to disable or make users login account invalid on 4th attempt by loading an error page such that the user will be ask to get new account. how do I proceed. Below is my attempt so far. Do i need to set count <=4 to true? or false?. If possible,how
thanks

 
Paul Clapham
Sheriff
Posts: 21107
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Look at it this way: when count is equal to 1, that means the user has made only one login attempt so far, right? So now consider what your code would do when count is equal to 1. Is that what you would want it to do?
 
muntago Richard
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No my intention was to allow each user to login only 4 times and on 5th login attempt let it display an error message that their login credential is no longer valid meaning that they should get new username and password.
Thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic