<?php
/**
 * Configuration overrides for the CakeDC/Users plugin.
 *
 * Any settings defined here take precedence over the plugin's own
 * defaults. At present this just redirects users to the dashboard
 * after they log in.
 */
declare(strict_types=1);

use function Cake\Core\env;

return [
    // Send authenticated users to dashboard by default.
    'Auth.AuthenticationComponent.loginRedirect' => '/dashboard',
    'Users.reCaptcha.key' => env('RECAPTCHA_KEY', ''),
    'Users.reCaptcha.secret' => env('RECAPTCHA_SECRET', ''), 
    'Users.reCaptcha.version' => '2', 
    'Users.reCaptcha.registration' => true, //enable on registration
    'Users.reCaptcha.login' => true, //enable on login
];
