Skip to content

Commit de0e33b

Browse files
committed
change offset.
1 parent 251e0f4 commit de0e33b

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

Captcha.php

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
class Captcha extends \yii\captcha\Captcha
77
{
8+
public $template = '<div class="developit-captcha">{image} {input}</div>';
89
public function run()
910
{
1011
$this->registerClientScript();

CaptchaAction.php

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ class CaptchaAction extends \yii\captcha\CaptchaAction
1010
public $fontFile = '@developit/captcha/font/LithosPro-Regular.otf';
1111
public $foreColor = 0x999999;
1212
public $type = 'default'; // numbers & letters
13+
public $offset = -18;
1314

1415
public function run()
1516
{

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
yii2 captcha
22
============
3-
3+
yii2 captcha with Ability to recognize Arabic and Persian numbers.
44
![screenshot](http://www.developit.ir/tmp/yii2-captcha.jpg)
55

66
Installation

0 commit comments

Comments
 (0)