WP-4741 Changes to look for the cas-login before taking action.