mirror of
https://github.com/flarum/framework.git
synced 2024-11-26 10:14:16 +08:00
Fix URL generator usage
This commit is contained in:
parent
57a91c966d
commit
d807171c44
|
@ -108,7 +108,7 @@ class LogOutController implements ControllerInterface
|
|||
$return = array_get($request->getQueryParams(), 'return');
|
||||
|
||||
$view = $this->view->make('flarum.forum::log-out')
|
||||
->with('url', $this->url->toRoute('logout').'?token='.$csrfToken.($return ? '&return='.urlencode($return) : ''));
|
||||
->with('url', $this->url->to('forum')->route('logout').'?token='.$csrfToken.($return ? '&return='.urlencode($return) : ''));
|
||||
|
||||
return new HtmlResponse($view->render());
|
||||
}
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
</div>
|
||||
@endif
|
||||
|
||||
<form class="form" method="POST" action="{{ $url->toRoute('savePassword') }}">
|
||||
<form class="form" method="POST" action="{{ $url->to('forum')->route('savePassword') }}">
|
||||
<input type="hidden" name="csrfToken" value="{{ $csrfToken }}">
|
||||
<input type="hidden" name="passwordToken" value="{{ $passwordToken }}">
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user