implement logout method

This commit is contained in:
yggverse 2024-08-03 20:33:20 +03:00
parent daf048d25b
commit f901bff995
2 changed files with 24 additions and 32 deletions

View file

@ -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(