Commit 33a7a1b1 authored by Christophe Maudoux's avatar Christophe Maudoux

Append warning if Mailrest plugin is enabled without Token or Captcha (#1602)

parent 2dfe4bdd
Pipeline #3805 passed with stages
in 10 minutes and 23 seconds
......@@ -606,6 +606,16 @@ sub tests {
return 1;
},
# Warn if Mailrest plugin is enabled without Token or Captcha
checkMailResetSecurity => sub {
return 1 unless ( $conf->{portalDisplayResetPassword} );
return ( 1,
'"passwordMailReset" plugin is enabled without CSRF Token or Captcha required !!!'
) unless ( $conf->{requireToken} or $conf->{captcha_mail_enabled} );
# Return
return 1;
},
};
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment