Package net.sf.collabreview.core.users

Examples of net.sf.collabreview.core.users.Author.authenticate()


      if (auth == null) {
        logger.debug("login data missing");
        throw new IllegalArgumentException("login data missing");
      }
      author = CollabReviewSingleton.get().getAuthorManager().getAuthor(auth.getUserName());
      author.authenticate(auth.getPassword());
    } else {
      // wait a moment to reduce risk of brute force attacks
      try {
        Thread.sleep(500);
      } catch (InterruptedException e) {
View Full Code Here


        Thread.sleep(500);
      } catch (InterruptedException e) {
      }
      logger.debug("Login attempt: " + accountName);
      author = CollabReviewSingleton.get().getAuthorManager().getAuthor(accountName);
      author.authenticate(password);
      auth = new SessionAuthentication(accountName, password);
    }
    if (!author.isAuthenticated()) {
      logger.warn("Authentication failed for user " + accountName);
      throw new IllegalArgumentException("login failed");
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.