OSDN Git Service

Newslash::Web: enable ReCaptcha plugin in test mode
authorhylom <hylom@users.sourceforge.jp>
Fri, 24 Aug 2018 12:32:15 +0000 (21:32 +0900)
committerhylom <hylom@users.sourceforge.jp>
Fri, 24 Aug 2018 12:32:15 +0000 (21:32 +0900)
src/newslash_web/lib/Newslash/Web.pm

index ee5f807..3dc2259 100644 (file)
@@ -154,9 +154,7 @@ sub startup {
     $app->plugin('Newslash::Plugin::AccessControl');
 
     # ReCaptcha control
-    if ($app->mode ne 'test') {
-        $app->plugin('Newslash::Plugin::ReCaptcha');
-    }
+    $app->plugin('Newslash::Plugin::ReCaptcha');
 
     # set canocal (for test.srad.jp)
     $app->plugin('Newslash::Plugin::Canonical');