Skip to content

Commit

Permalink
Fix typo getItendedSessionKey (#42)
Browse files Browse the repository at this point in the history
getItendedSessionKey => getIntendedSessionKey
  • Loading branch information
AIC-BV authored Aug 31, 2023
1 parent 90a6495 commit f10d1e6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions classes/UserRedirector.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class UserRedirector extends Redirector
*/
public function guest($path, $status = 302, $headers = [], $secure = null)
{
$this->session->put($this->getItendedSessionKey(), $this->generator->full());
$this->session->put($this->getIntendedSessionKey(), $this->generator->full());

return $this->to($path, $status, $headers, $secure);
}
Expand All @@ -32,7 +32,7 @@ public function guest($path, $status = 302, $headers = [], $secure = null)
*/
public function intended($default = '/', $status = 302, $headers = [], $secure = null)
{
$path = $this->session->pull($this->getItendedSessionKey(), $default);
$path = $this->session->pull($this->getIntendedSessionKey(), $default);

return $this->to($path, $status, $headers, $secure);
}
Expand All @@ -45,15 +45,15 @@ public function intended($default = '/', $status = 302, $headers = [], $secure =
*/
public function setIntendedUrl($url)
{
$this->session->put($this->getItendedSessionKey(), $url);
$this->session->put($this->getIntendedSessionKey(), $url);
}

/**
* Get the session key for the intended redirect
*
* @return string
*/
protected function getItendedSessionKey()
protected function getIntendedSessionKey()
{
return App::runningInBackend() ? 'url.intended' : 'url.frontend.intended';
}
Expand Down

0 comments on commit f10d1e6

Please sign in to comment.