|
|
@ -180,10 +180,19 @@ class Auth |
|
|
|
{ |
|
|
|
{ |
|
|
|
if ($option->gtk->get_active()) |
|
|
|
if ($option->gtk->get_active()) |
|
|
|
{ |
|
|
|
{ |
|
|
|
// Auth |
|
|
|
// Logout previous identities for this request |
|
|
|
|
|
|
|
$this->page->container->browser->database->auth->logout( |
|
|
|
|
|
|
|
$this->page->navbar->request->getValue() |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Activate existing identity |
|
|
|
if ($id) |
|
|
|
if ($id) |
|
|
|
{ |
|
|
|
{ |
|
|
|
// @TODO activate existing record |
|
|
|
// Add new auth record |
|
|
|
|
|
|
|
$this->page->container->browser->database->auth->add( |
|
|
|
|
|
|
|
$id, |
|
|
|
|
|
|
|
$this->page->navbar->request->getValue() |
|
|
|
|
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// Generate new identity |
|
|
|
// Generate new identity |
|
|
@ -202,11 +211,6 @@ class Auth |
|
|
|
// Init identity model |
|
|
|
// Init identity model |
|
|
|
$identity = new Gemini; |
|
|
|
$identity = new Gemini; |
|
|
|
|
|
|
|
|
|
|
|
// Logout previous set |
|
|
|
|
|
|
|
$this->page->container->browser->database->auth->logout( |
|
|
|
|
|
|
|
$this->page->navbar->request->getValue() |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Add new auth record |
|
|
|
// Add new auth record |
|
|
|
$this->page->container->browser->database->auth->add( |
|
|
|
$this->page->container->browser->database->auth->add( |
|
|
|
$this->page->container->browser->database->identity->add( |
|
|
|
$this->page->container->browser->database->identity->add( |
|
|
|