Add the ability to enable/disable registrations when in the CAS flow. Contributed by Aurélien Grimpard.