|
@@ -194,7 +194,7 @@ class NewsController extends Controller
|
|
}
|
|
}
|
|
|
|
|
|
if(\Yii::$app->request->isPost){
|
|
if(\Yii::$app->request->isPost){
|
|
- $capcha_result = ceil(base64_decode(\Yii::$app->request->post('capcha_salt'))*3.14);
|
|
|
|
|
|
+ $capcha_result = base64_decode(\Yii::$app->request->post('capcha_salt'))/3.14;
|
|
if(
|
|
if(
|
|
\Yii::$app->request->post('capcha')=="" ||
|
|
\Yii::$app->request->post('capcha')=="" ||
|
|
\Yii::$app->request->post('capcha')!= $capcha_result
|
|
\Yii::$app->request->post('capcha')!= $capcha_result
|