坦克身份验证注册始终过期


Tank auth Register always expired

每个人都能帮我吗?

我想在我的注册表中使用验证码。我将 Codeigniter 2.0 与坦克身份验证一起使用,但是当我注册时验证码总是过期。

验证码罐身份验证的此配置:

$config['captcha_path'] = 'captcha/';
$config['captcha_fonts_path'] = 'captcha/fonts/1.ttf';
$config['captcha_width'] = 200;
$config['captcha_height'] = 50;
$config['captcha_font_size'] = 18;
$config['captcha_grid'] = FALSE;
$config['captcha_expire'] = 180;
$config['captcha_case_sensitive'] = FALSE;

试试这个:

$config['captcha_path'] = 'captcha/';

更改为此:

$config['captcha_path'] = './PATH_TO_YOUR_IMAGES_FOLDER/captcha/';

您必须确保图像文件夹中有一个名为验证码的文件夹,当然具有适当的权限。

如果显示验证码,请尝试在配置文件夹中重新上传dx_auth.php。

另外请检查配置.php您是否使用"本地"或"GMT"作为您的time_reference?

无论哪种方式,请尝试将其从一个切换到另一个,然后再次尝试验证码。 这似乎是时区差异和 cookie 过期的问题。