mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 09:05:27 +00:00
implement logout method
This commit is contained in:
parent
daf048d25b
commit
f901bff995
2 changed files with 24 additions and 32 deletions
|
|
@ -97,7 +97,7 @@ class Auth
|
|||
]->useName();
|
||||
|
||||
// Search database for auth records
|
||||
foreach ($this->page->container->browser->database->auth->like(
|
||||
foreach ($this->page->container->browser->database->auth->match(
|
||||
sprintf(
|
||||
'%s%%',
|
||||
$this->page->navbar->request->getValue()
|
||||
|
|
@ -202,6 +202,11 @@ 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