Skip to content

Commit 4fcf065

Browse files
authored
Merge pull request #283 from parisiam/fix_route_to
2 parents ab0b6c8 + d20e4ae commit 4fcf065

5 files changed

Lines changed: 8 additions & 8 deletions

File tree

src/Views/email_2fa_show.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<div class="alert alert-danger"><?= session('error') ?></div>
1616
<?php endif ?>
1717

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

2121
<!-- Email -->

src/Views/email_2fa_verify.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<div class="alert alert-danger"><?= session('error') ?></div>
1616
<?php endif ?>
1717

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

2121
<!-- Code -->

src/Views/login.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
<div class="alert alert-success" role="alert"><?= session('message') ?></div>
2929
<?php endif ?>
3030

31-
<form action="<?= route_to('login') ?>" method="post">
31+
<form action="<?= url_to('login') ?>" method="post">
3232
<?= csrf_field() ?>
3333

3434
<!-- Email -->
@@ -56,11 +56,11 @@
5656
</div>
5757

5858
<?php if (setting('Auth.allowMagicLinkLogins')) : ?>
59-
<p class="text-center"><?= lang('Auth.forgotPassword') ?> <a href="<?= route_to('magic-link') ?>"><?= lang('Auth.useMagicLink') ?></a></p>
59+
<p class="text-center"><?= lang('Auth.forgotPassword') ?> <a href="<?= url_to('magic-link') ?>"><?= lang('Auth.useMagicLink') ?></a></p>
6060
<?php endif ?>
6161

6262
<?php if (setting('Auth.allowRegistration')) : ?>
63-
<p class="text-center"><?= lang('Auth.needAccount') ?> <a href="<?= route_to('register') ?>"><?= lang('Auth.register') ?></a></p>
63+
<p class="text-center"><?= lang('Auth.needAccount') ?> <a href="<?= url_to('register') ?>"><?= lang('Auth.register') ?></a></p>
6464
<?php endif ?>
6565

6666
</form>

src/Views/magic_link_form.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<div class="alert alert-danger" role="alert"><?= session('error') ?></div>
1414
<?php endif ?>
1515

16-
<form action="<?= route_to('magic-link') ?>" method="post">
16+
<form action="<?= url_to('magic-link') ?>" method="post">
1717
<?= csrf_field() ?>
1818

1919
<!-- Email -->

src/Views/register.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
</div>
2525
<?php endif ?>
2626

27-
<form action="<?= route_to('register') ?>" method="post">
27+
<form action="<?= url_to('register') ?>" method="post">
2828
<?= csrf_field() ?>
2929

3030
<!-- Email -->
@@ -51,7 +51,7 @@
5151
<button type="submit" class="btn btn-primary btn-block"><?= lang('Auth.register') ?></button>
5252
</div>
5353

54-
<p class="text-center"><?= lang('Auth.haveAccount') ?> <a href="<?= route_to('login') ?>"><?= lang('Auth.login') ?></a></p>
54+
<p class="text-center"><?= lang('Auth.haveAccount') ?> <a href="<?= url_to('login') ?>"><?= lang('Auth.login') ?></a></p>
5555

5656
</form>
5757
</div>

0 commit comments

Comments
 (0)