Closed ondequadre closed 2 years ago
Hello @ondequadre .
This error is due to the fact that in Table auth_groups_users
without a group are user registered.
Please send the output of the following command for review if you are using version CI4.2
.
php spark db:table auth_groups_users
Hello @datamweb, here the output:
CodeIgniter v4.2.0 Command Line Tool - Server Time: 2022-06-05 21:17:46 UTC+02:00
Data of Table "auth_groups_users":
+----+---------+------------+--------------------+
| id | user_id | group | created_at |
+----+---------+------------+--------------------+
| 1 | 1 | superadmin | 2022-06-05 17:4... |
| 2 | 2 | user | 2022-06-05 19:1... |
+----+---------+------------+--------------------+
I've checked, but can't reproduce the error.
If you logged out, the following if
statement would be false
.
How did you logout?
There is a corner of this error. I had the same problem two days ago. I tried to repeat the mistake so I could write a test, but it failed.
There is a corner of this error.
What do you mean?
@kenjis after login ,If the first time http://localhost:8080/logout
is called, an error is displayed.
Then, if http://localhost:8080/logout
called again, the user will logout successfully and no error will be displayed.
Step 1 : login
step 2 : http://localhost:8080/logout
step 3 : http://localhost:8080/logout
@ondequadre Do you confirm this?
@datamweb Please check #211 if it fixes the problem.
@datamweb Yes I confirm that is exactly what happens
@ondequadre This case was resolved #211 . And waiting for merge. Thanks for your report.
I point out that when the logout is performed, an error occurs in the development environment with the toolbar active, as shown in the attached image. In production environment or disabling the toolbar the error does not appear.