Skip to content

Conversation

kenjis
Copy link
Member

@kenjis kenjis commented Jul 6, 2022

  • remove unnecessary call

Copy link
Member

@MGatner MGatner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Take or leave the comment.

$actionClass = setting('Auth.actions')['login'] ?? null;
if (! empty($actionClass)) {
return redirect()->to(route_to('auth-action-show'))->withCookies();
return redirect()->route('auth-action-show')->withCookies();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This works too:

Suggested change
return redirect()->route('auth-action-show')->withCookies();
return redirect('auth-action-show')->withCookies();

@kenjis kenjis merged commit c17aaeb into codeigniter4:develop Jul 7, 2022
@kenjis kenjis deleted the refactor-remove-route_to branch July 7, 2022 06:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants