We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c3e288 commit 34572feCopy full SHA for 34572fe
README.md
@@ -42,6 +42,30 @@ Configuration app
42
43
```
44
45
+
46
+```php
47
48
+'on beforeRequest' => function ($event) {
49
+ //For example in addition to close the admin panel http authorization
50
+ if (\Yii::$app->admin->requestIsAdmin)
51
+ {
52
+ \Yii::$app->httpBasicAuth->verify();
53
+ }
54
+},
55
56
+'components' =>
57
+[
58
+ 'httpBasicAuth' =>
59
+ [
60
+ 'class' => 'skeeks\yii2\httpBasicAuth\HttpBasicAuthComponent',
61
+ 'login' => 'login',
62
+ 'password' => 'password',
63
+ ],
64
65
+]
66
67
+```
68
69
___
70
71
> [](http://skeeks.com)
0 commit comments