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

miaoxing / admin / 9565469433

17 Jun 2024 02:36PM UTC coverage: 24.307% (-0.08%) from 24.386%
9565469433

push

github

twinh
feat(admin): 退出登录页面无需权限控制

20 of 82 branches covered (24.39%)

0 of 2 new or added lines in 1 file covered. (0.0%)

149 of 613 relevant lines covered (24.31%)

2.81 hits per line

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

0.0
/pages/api/admin/logout/index.php
1
<?php
2

3
use Miaoxing\App\Middleware\CheckPagePermission;
4
use Miaoxing\Plugin\BasePage;
5
use Miaoxing\Plugin\Service\User;
6

7
return new class () extends BasePage {
×
8
    protected $className = '用户';
9

10
    protected $methodNames = [
11
        'post' => '退出',
12
    ];
13

14
    public function init()
15
    {
NEW
16
        parent::init();
×
NEW
17
        $this->removeMiddleware(CheckPagePermission::class);
×
18
    }
19

20
    public function post()
21
    {
22
        return User::logout();
×
23
    }
24
};
×
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