Fix password reset and other minor items
This commit is contained in:
@@ -46,7 +46,7 @@ class Auth_OSB extends Auth_ORM {
|
||||
$mo = ORM::factory('Module',array('name'=>Request::current()->controller()));
|
||||
$mmo = ORM::factory('Module_Method',array(
|
||||
'module_id'=>$mo->id,
|
||||
'name'=>Request::current()->directory() ? sprintf('%s_%s',Request::current()->directory(),Request::current()->action()) : Request::current()->action()
|
||||
'name'=>strtolower(Request::current()->directory() ? sprintf('%s:%s',Request::current()->directory(),Request::current()->action()) : Request::current()->action())
|
||||
));
|
||||
|
||||
// Ignore the token if this is not the right method.
|
||||
@@ -81,7 +81,7 @@ class Auth_OSB extends Auth_ORM {
|
||||
Session::instance()->set('token',$token);
|
||||
|
||||
$uo = ORM::factory('Account',$mmto->account_id);
|
||||
$uo->log(sprintf('Token %s used for method %s [%s]',$mmto->token,$mmto->module_method->name(),Request::current()->param('id')));
|
||||
$uo->log(sprintf('Token %s used for method %s [%s]',$mmto->token,$mmto->module_method->id,Request::current()->param('id')));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user