Skip to content

Commit a2a5b0d

Browse files
authored
Merge pull request #883 from sammyskills/fix/use-named-routes
fix: use named routes for redirects and form submission
2 parents 112ba2a + 0cf7e59 commit a2a5b0d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Controllers/RegisterController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ public function registerAction(): RedirectResponse
126126
// If an action has been defined for register, start it up.
127127
$hasAction = $authenticator->startUpAction('register', $user);
128128
if ($hasAction) {
129-
return redirect()->to('auth/a/show');
129+
return redirect()->route('auth-action-show');
130130
}
131131

132132
// Set the user active

src/Views/email_activate_show.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
<p><?= lang('Auth.emailActivateBody') ?></p>
1717

18-
<form action="<?= site_url('auth/a/verify') ?>" method="post">
18+
<form action="<?= url_to('auth-action-verify') ?>" method="post">
1919
<?= csrf_field() ?>
2020

2121
<!-- Code -->

0 commit comments

Comments
 (0)