Skip to content

Commit f6f275d

Browse files
committed
Fixed some nasty bugs in the redirector.
Signed-off-by: Jason Lewis <jason.lewis1991@gmail.com>
1 parent 619f272 commit f6f275d

1 file changed

Lines changed: 8 additions & 7 deletions

File tree

components/support/redirector.php

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
use URL;
44
use URI;
55
use Input;
6+
use Bundle;
67
use Request;
78
use Redirect;
89
use Feather\Auth;
@@ -68,29 +69,29 @@ public function to_previous($default = null)
6869
*
6970
* @return object
7071
*/
71-
public static function after_logout()
72+
public function after_logout()
7273
{
73-
return $this->for_auth(Config::get('feather: auth.logout_url'));
74+
return $this->for_auth(Config::get('feather: db.auth.logout_url'));
7475
}
7576

7677
/**
7778
* Create a redirect response before a registration.
7879
*
7980
* @return object
8081
*/
81-
public static function before_register()
82+
public function before_register()
8283
{
83-
return $this->for_auth(Config::get('feather: auth.register_url'));
84+
return $this->for_auth(Config::get('feather: db.auth.register_url'));
8485
}
8586

8687
/**
8788
* Create a redirect response before a login.
8889
*
8990
* @return object
9091
*/
91-
public static function before_login()
92+
public function before_login()
9293
{
93-
return $this->for_auth(Config::get('feather: auth.login_url'));
94+
return $this->for_auth(Config::get('feather: db.auth.login_url'));
9495
}
9596

9697
/**
@@ -107,7 +108,7 @@ protected function for_auth($url)
107108
'{token}' => Auth::online() ? Auth::user()->authenticator_token : null
108109
);
109110

110-
if(Config::get('feather: auth.driver') == 'internal')
111+
if(Config::get('feather: db.auth.driver') == 'internal')
111112
{
112113
$url = URL::to_route('feather');
113114
}

0 commit comments

Comments
 (0)