This commit is contained in:
James Cole
2025-06-09 05:53:11 +02:00
parent 67bab2561a
commit 91b0ad625c
2 changed files with 5 additions and 5 deletions

View File

@@ -61,12 +61,12 @@ class ForgotPasswordController extends Controller
* *
* @return Factory|RedirectResponse|View * @return Factory|RedirectResponse|View
*/ */
public function sendResetLinkEmail(Request $request, ?UserRepositoryInterface $repository = null) public function sendResetLinkEmail(Request $request, UserRepositoryInterface $repository)
{ {
app('log')->info('Start of sendResetLinkEmail()'); Log::info('Start of sendResetLinkEmail()');
if ('web' !== config('firefly.authentication_guard')) { if ('web' !== config('firefly.authentication_guard')) {
$message = sprintf('Cannot reset password when authenticating over "%s".', config('firefly.authentication_guard')); $message = sprintf('Cannot reset password when authenticating over "%s".', config('firefly.authentication_guard'));
app('log')->error($message); Log::error($message);
return view('error', compact('message')); return view('error', compact('message'));
} }
@@ -89,7 +89,7 @@ class ForgotPasswordController extends Controller
// need to show to the user. Finally, we'll send out a proper response. // need to show to the user. Finally, we'll send out a proper response.
$result = $this->broker()->sendResetLink($request->only('email')); $result = $this->broker()->sendResetLink($request->only('email'));
if ('passwords.throttled' === $result) { if ('passwords.throttled' === $result) {
app('log')->error(sprintf('Cowardly refuse to send a password reset message to user #%d because the reset button has been throttled.', $user->id)); Log::error(sprintf('Cowardly refuse to send a password reset message to user #%d because the reset button has been throttled.', $user->id));
} }
// always send the same response to the user: // always send the same response to the user:

View File

@@ -223,7 +223,7 @@ class LoginController extends Controller
* *
* @throws FireflyException * @throws FireflyException
*/ */
public function showLoginForm(?Request $request = null) public function showLoginForm(Request $request)
{ {
Log::channel('audit')->info('Show login form (1.1).'); Log::channel('audit')->info('Show login form (1.1).');