Skip to content

Commit

Permalink
Merge pull request #247 from humanmade/backport-223-to-v14-branch
Browse files Browse the repository at this point in the history
[Backport v14-branch] Update code example in Basic Auth documentation
  • Loading branch information
kovshenin authored Feb 27, 2023
2 parents b2e8b78 + bb92744 commit 1794e0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/basic-auth.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ Manual setup involves a simpler configuration in your `composer.json` but an add
This _turns on_ the Basic Auth component, but does not define the username and password. Without the username and password, basic authentication will not be required. To specify the username and password in this configuration, you must add them as PHP constants to a file in the `.config/` directory (e.g. `.config/load.php` or a file required by `.config/load.php`). The following example is recommended:

```php
if ( in_array( \Altis\get_environment_type(), [ 'staging', 'development' ] ) {
if ( in_array( \Altis\get_environment_type(), [ 'staging', 'development' ], true ) ) {
define( 'HM_BASIC_AUTH_USER', 'altisusername' );
define( 'HM_BASIC_AUTH_PW', 'altispassword' );
}
Expand Down

0 comments on commit 1794e0c

Please sign in to comment.