Enabled Fastbook/OAuth login
This commit is contained in:
@@ -110,6 +110,7 @@ Kohana::$config->attach(new Config_File);
|
||||
*/
|
||||
Kohana::modules(array(
|
||||
'lnapp' => MODPATH.'lnApp',
|
||||
'oauth' => MODPATH.'oauth', // OAuth Module for External Authentication
|
||||
'auth' => SMDPATH.'auth', // Basic authentication
|
||||
'cache' => SMDPATH.'cache', // Caching with multiple backends
|
||||
'cron' => SMDPATH.'cron', // Kohana Cron Module
|
||||
|
@@ -19,7 +19,7 @@ class URL extends Kohana_URL {
|
||||
);
|
||||
|
||||
public static function admin_url() {
|
||||
return (Request::current() AND ((Auth::instance()->logged_in() AND ! empty(URL::$method_directory[strtolower(Request::current()->directory())])) OR in_array(strtolower(Request::current()->controller()),array('login'))));
|
||||
return (Request::current() AND ((Auth::instance()->logged_in() AND ! empty(URL::$method_directory[strtolower(Request::current()->directory())])) OR in_array(strtolower(Request::current()->controller()),array('login','oauth'))));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user