isAutheticated = IdentityTenantUtil.getRealm(domainName, userName).getUserStoreManager()
.authenticate(tenantUser, password);
// attempts to do multi-factor authentication, if the user has enabled it.
if (xmppSettingsDO != null && xmppSettingsDO.isXmppEnabled() && isAutheticated) {
MPAuthenticationProvider mpAuthenticationProvider = new MPAuthenticationProvider(
xmppSettingsDO);
authenticationStatus = mpAuthenticationProvider.authenticate();
if (log.isDebugEnabled()) {
log.debug("XMPP Multifactor Authentication was completed Successfully.");
}
}