String userName = params[USER_NAME_IDX];
String passwd = "";
if ((params.length > PASSWD_IDX) && (params[PASSWD_IDX] != null)) {
passwd = params[PASSWD_IDX];
}
Authenticator auth = Authenticate.getAuthenticator();
Authenticator.AuthToken userToken = null;
if (auth != null) {
userToken = auth.authenticate(userName, passwd);
if (userToken == null) {
params[USER_NAME_IDX] = BugReporter.GUEST_USER;
params[PASSWD_IDX] = null;
}
}