Skip to content

Commit

Permalink
update file
Browse files Browse the repository at this point in the history
  • Loading branch information
juancristobalgd1 committed Feb 29, 2024
1 parent 6e81957 commit 49db64a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 24 deletions.
2 changes: 1 addition & 1 deletion core/libraries/Auth/Auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public function __construct(App $app, string $usernameField = 'email', string $p
$this->app = $app;

$this->session = $app->session;
$this->userClass = $app->config->app->userClass;
$this->userClass = config('app.userClass');
$this->usernameField = $usernameField;
$this->passwordField = $passwordField;
}
Expand Down
21 changes: 0 additions & 21 deletions core/libraries/Auth/LICENSE

This file was deleted.

4 changes: 2 additions & 2 deletions core/libraries/Http/Router.php
Original file line number Diff line number Diff line change
Expand Up @@ -303,8 +303,8 @@ private function getRouteCallback(string $method, string $uri)
*/
private function resolve($callback)
{
// $middleware = $this->app->controller->getMiddlewares();
// $this->executeMiddlewares($middleware);
$middleware = $this->app->controller->getMiddlewares();
$this->executeMiddlewares($middleware);

return match (true) {
is_callable($callback) => $this->callCallback($callback), // if it's callable - just execute
Expand Down

0 comments on commit 49db64a

Please sign in to comment.