• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

miaoxing / captcha / 7601400077

15 Jan 2024 01:25PM UTC coverage: 92.157%. Remained the same
7601400077

push

github

twinh
ci: 更新默认运行 node 版本为 20

47 of 51 relevant lines covered (92.16%)

4.82 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/Controller/CaptchaController.php
1
<?php
2

3
namespace Miaoxing\Captcha\Controller;
4

5
use Miaoxing\Plugin\BaseController;
6

7
class CaptchaController extends BaseController
8
{
9
    protected $controllerAuth = false;
10

11
    public function indexAction()
12
    {
13
        $this->res->setHeader('Content-type', 'image/png');
×
14

15
        return wei()->captcha->render();
×
16
    }
17

18
    public function checkAction($req)
19
    {
20
        return wei()->captcha->check($req['captcha']);
×
21
    }
22
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc