mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 16:45:27 +00:00
implement auth with existing identity
This commit is contained in:
parent
f901bff995
commit
9448dd73ce
1 changed files with 11 additions and 7 deletions
|
|
@ -180,10 +180,19 @@ class Auth
|
|||
{
|
||||
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)
|
||||
{
|
||||
// @TODO activate existing record
|
||||
// Add new auth record
|
||||
$this->page->container->browser->database->auth->add(
|
||||
$id,
|
||||
$this->page->navbar->request->getValue()
|
||||
);
|
||||
}
|
||||
|
||||
// Generate new identity
|
||||
|
|
@ -202,11 +211,6 @@ class Auth
|
|||
// Init identity model
|
||||
$identity = new Gemini;
|
||||
|
||||
// Logout previous set
|
||||
$this->page->container->browser->database->auth->logout(
|
||||
$this->page->navbar->request->getValue()
|
||||
);
|
||||
|
||||
// Add new auth record
|
||||
$this->page->container->browser->database->auth->add(
|
||||
$this->page->container->browser->database->identity->add(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue