mirror of
https://github.com/Mibew/i18n.git
synced 2025-02-02 09:34:41 +03:00
fix captcha
git-svn-id: https://webim.svn.sourceforge.net/svnroot/webim/trunk@801 c66351dc-e62f-0410-b875-e3a5c0b9693f
This commit is contained in:
parent
a99a621a66
commit
b1e2624702
@ -23,7 +23,7 @@ require_once('libs/common.php');
|
|||||||
require_once('libs/captcha.php');
|
require_once('libs/captcha.php');
|
||||||
|
|
||||||
$captchaCode = gen_captcha();
|
$captchaCode = gen_captcha();
|
||||||
$_SESSION["captcha"] = $captchaCode;
|
$_SESSION["mibew_captcha"] = $captchaCode;
|
||||||
draw_captcha($captchaCode);
|
draw_captcha($captchaCode);
|
||||||
|
|
||||||
exit;
|
exit;
|
||||||
|
@ -84,7 +84,7 @@ if( !$email ) {
|
|||||||
|
|
||||||
if($settings["enablecaptcha"] == "1" && can_show_captcha()) {
|
if($settings["enablecaptcha"] == "1" && can_show_captcha()) {
|
||||||
$captcha = getparam('captcha');
|
$captcha = getparam('captcha');
|
||||||
$original = isset($_SESSION['captcha']) ? $_SESSION['captcha'] : "";
|
$original = isset($_SESSION["mibew_captcha"]) ? $_SESSION["mibew_captcha"] : "";
|
||||||
if(empty($original) || empty($captcha) || $captcha != $original) {
|
if(empty($original) || empty($captcha) || $captcha != $original) {
|
||||||
$errors[] = getlocal('errors.captcha');
|
$errors[] = getlocal('errors.captcha');
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user