aspose file tools*
The moose likes Java Micro Edition and the fly likes limit login attempts Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "limit login attempts" Watch "limit login attempts" New topic
Author

limit login attempts

dan sidebottom
Greenhorn

Joined: Aug 15, 2010
Posts: 1
hi how do i change this code to limit user attempts to 3?

public void validateUser(String name, String password) {
if (name.equals("admin") && password.equals("letmein")) {
display.setCurrent(list1);
} else {
tryAgain();
}
}
public void tryAgain() {
Alert error = new Alert("Login Incorrect", "Please try again", null, AlertType.ERROR);

Many thanks
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16145
    
  21

Welcome to the JavaRanch, Dan.

Question #1: Is this supposed to have anything at all to do with Java Mobile Edition?

Question #2: What sort of system is this code supposed to be part of? Is it web-based? An applet? Servlet? Stand-alone application?


Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: limit login attempts