diff --git a/src/ACL/Login.php b/src/ACL/Login.php index 365f5e6..6302b12 100644 --- a/src/ACL/Login.php +++ b/src/ACL/Login.php @@ -79,7 +79,7 @@ class Login private ?int $edit_user_id; /** @var ?string the user cuid (note will be super seeded with uuid v4 later) */ private ?string $edit_user_cuid; - /** @var ?string UUIDv4, will superseed the ecuid and replace euid as login id */ + /** @var ?string UUIDv4, will superseed the eucuid and replace euid as login id */ private ?string $edit_user_cuuid; /** @var string _GET/_POST loginUserId parameter for non password login */ private string $login_user_id = ''; @@ -2371,7 +2371,7 @@ HTML; } $q = <<session->get('LOGIN_PAGES'); } - // MARK: logged in uid(pk)/cuid/ecuuid + // MARK: logged in uid(pk)/eucuid/eucuuid /** * Get the current set EUID (edit user id) @@ -2938,7 +2938,7 @@ HTML; if (empty($this->edit_user_cuuid)) { return $this->permission_okay; } - // euid must match ecuid and ecuuid + // euid must match eucuid and eucuuid // bail for previous wrong page match, eg if method is called twice if ($this->login_error == 103) { return $this->permission_okay; diff --git a/src/Admin/Backend.php b/src/Admin/Backend.php index 6f02cd2..04e084f 100644 --- a/src/Admin/Backend.php +++ b/src/Admin/Backend.php @@ -358,7 +358,7 @@ class Backend } $q = << anything values return only the matching entries from key list + * From the array with key -> mixed values, + * return only the entries where the key matches the key given in the key list parameter + * * key list is a list[string] * if key list is empty, return array as is * diff --git a/test/phpunit/ACL/database/CoreLibsACLLogin_database_create_data.sql b/test/phpunit/ACL/database/CoreLibsACLLogin_database_create_data.sql index 7caaf1c..1b6855b 100644 --- a/test/phpunit/ACL/database/CoreLibsACLLogin_database_create_data.sql +++ b/test/phpunit/ACL/database/CoreLibsACLLogin_database_create_data.sql @@ -652,8 +652,8 @@ CREATE TABLE edit_log ( edit_log_id INT GENERATED ALWAYS AS IDENTITY PRIMARY KEY, euid INT, -- this is a foreign key, but I don't nedd to reference to it FOREIGN KEY (euid) REFERENCES edit_user (edit_user_id) MATCH FULL ON UPDATE CASCADE ON DELETE SET NULL, - ecuid VARCHAR, - ecuuid UUID, -- this is the one we want to use, full UUIDv4 from the edit user table + eucuid VARCHAR, + eucuuid UUID, -- this is the one we want to use, full UUIDv4 from the edit user table -- date_created equal, but can be overridden event_date TIMESTAMP WITHOUT TIME ZONE DEFAULT CURRENT_TIMESTAMP, -- session ID if set