Skip to content

Commit

Permalink
Merge pull request #10 from burcev-alex/feat-custom-auth
Browse files Browse the repository at this point in the history
feat(config): Callback authorize
  • Loading branch information
bigperson authored Jul 21, 2022
2 parents dee7225 + b3489cd commit 1e4ade7
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions publish/config/exchange1c.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
<?php

/**
* This file is part of bigperson/laravel-exchange1c package.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

declare(strict_types=1);

return [
Expand All @@ -21,4 +23,14 @@
],
'log_channel' => 'daily',
'queue' => 'default',
'auth' => [
'custom' => false,
'callback' => function ($username, $password) {
if ($username == 'admin' && $password == 'admin') {
return true;
}

return false;
},
],
];

0 comments on commit 1e4ade7

Please sign in to comment.