* Add switch module function.
 * Forbid auth modules associated with closed modules.