Skip to content

Commit b348fb4

Browse files
committed
プレフィックス認証を更新
1 parent a90d2dc commit b348fb4

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

5/plugin/prefix_auth.md

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,19 +41,19 @@ return [
4141
'alias' => '/mypage',
4242
'loginRedirect' => [
4343
'plugin' => 'PluginName',
44-
'prefix' => 'mypage',
44+
'prefix' => 'Mypage',
4545
'controller' => 'Dashboard',
4646
'action' => 'index'
4747
],
4848
'loginAction' => [
4949
'plugin' => 'PluginName',
50-
'prefix' => 'mypage',
50+
'prefix' => 'Mypage',
5151
'controller' => 'Users',
5252
'action' => 'login'
5353
],
5454
'logoutAction' => [
5555
'plugin' => 'PluginName',
56-
'prefix' => 'mypage',
56+
'prefix' => 'Mypage',
5757
'controller' => 'Users',
5858
'action' => 'logout'
5959
],
@@ -73,8 +73,15 @@ return [
7373
'userModel' => 'BaserCore.Users',
7474
'permissionType' => 1,
7575
'isRestApi' => true
76-
],
77-
]
76+
]
77+
],
78+
// アクセスルールにて、ログインページへのアクセスを許可する
79+
'BcPermission' => [
80+
'defaultAllows' => [
81+
'/mypage/plugin-name/users/login'
82+
]
83+
]
84+
];
7885
```
7986

8087

0 commit comments

Comments
 (0)