File tree 3 files changed +3
-1
lines changed
3 files changed +3
-1
lines changed Original file line number Diff line number Diff line change 5
5
6
6
class Captcha extends \yii \captcha \Captcha
7
7
{
8
+ public $ template = '<div class="developit-captcha">{image} {input}</div> ' ;
8
9
public function run ()
9
10
{
10
11
$ this ->registerClientScript ();
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ class CaptchaAction extends \yii\captcha\CaptchaAction
10
10
public $ fontFile = '@developit/captcha/font/LithosPro-Regular.otf ' ;
11
11
public $ foreColor = 0x999999 ;
12
12
public $ type = 'default ' ; // numbers & letters
13
+ public $ offset = -18 ;
13
14
14
15
public function run ()
15
16
{
Original file line number Diff line number Diff line change 1
1
yii2 captcha
2
2
============
3
-
3
+ yii2 captcha with Ability to recognize Arabic and Persian numbers.
4
4
![ screenshot] ( http://www.developit.ir/tmp/yii2-captcha.jpg )
5
5
6
6
Installation
You can’t perform that action at this time.
0 commit comments