else if (authModule != null) {
if (certAuthEnabled() && (credentials instanceof X509Certificate)) {
authSession = ((CertAuthCapableAuthModule) authModule).login((X509Certificate) credentials);
}
else {
authSession = authModule.login(user, credentials);
}
if (authSession == null) {
return WGDatabase.ACCESSLEVEL_NOTLOGGEDIN;
}