Skip to content

Commit

Permalink
Wrap password checker callbacks
Browse files Browse the repository at this point in the history
  • Loading branch information
askvortsov1 committed Nov 19, 2020
1 parent b201523 commit 8911e81
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/User/UserServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,7 @@ public function boot()
}

$passwordCheckers = array_map(function ($checker) {
if (is_string($checker)) {
$checker = $this->app->make($checker);
}

return $checker;
return ContainerUtil::wrapCallback($checker, $this->app);
}, $this->app->make('flarum.user.password_checkers'));

User::setPasswordCheckers($passwordCheckers);
Expand Down

0 comments on commit 8911e81

Please sign in to comment.