chg: [console:TrainingShell] Added wipeAllAuthkeys function

pull/9304/head
Sami Mokaddem 2023-09-28 11:38:24 +02:00
parent fbc84647ed
commit 086266c0c3
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
1 changed files with 5 additions and 0 deletions

View File

@ -234,6 +234,11 @@ class TrainingShell extends AppShell {
$this->Organisation->deleteAll(['Organisation.name !=' => 'ORGNAME']);
}
public function WipeAllAuthkeys()
{
$this->Authkey->deleteAll(['Authkey.id !=' => 0]);
}
private function __createOrgFromBlueprint($id)
{
$org = str_replace('$ID', $id, $this->__config['org_blueprint']);