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");