// Change cached password on domain auth module, if it is password-caching
if (!WGDatabase.SESSIONTOKEN_USER.equals(loginInfo.getUserName())) {
DomainConfiguration domConfig = getwgacore().getDomainConfig(domain);
if (domConfig != null && domConfig.getAuthModule() instanceof PasswordCachingAuthenticationModule) {
PasswordCachingAuthenticationModule module = (PasswordCachingAuthenticationModule) domConfig.getAuthModule();
module.dropPasswordCache(loginInfo.getUserName());
}
}
}