Win a copy of Succeeding with AI this week in the Artificial Intelligence and Machine Learning forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
  • Junilu Lacar
Sheriffs:
  • Tim Cooke
  • Jeanne Boyarsky
  • Knute Snortum
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:
  • salvin francis
  • fred rosenberger
  • Frits Walraven

i need help on loggin account limit

 
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

 
Marshal
Posts: 25469
67
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
 
The two armies met. But instead of battle, they decided to eat some pie and contemplate this tiny ad:
Two software engineers solve most of the world's problems in one K&R sized book
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic