fixed a bug caused by captcha module under maintenance mode

Signed-off-by: songyang <waoywssy@gmail.com>