You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Summary:
An exception occurs when attempting to logout from a valid user session. It is triggered clicking on the logout link from the site navbar or following the uri directly: 'session/logout'.
Details:
File (Directory) Path: src/Plugins/Auth/
File Name: Auth.php
Line Number: 264
Line Snippet: $userId = $this->findFirstByToken($token);
Enclosing Method Name: remove
Problem: Attempting to logout from a valid user session is impossible due to an exception being rasied in the process. This happens as a result of calling the deleteToken() and passing the $userId variable as a parameter. If its 'set', its of the string data type. The deleteToken() method requires an one parameter of type: integer.
Suggested solution: This snippet, in line 264, could be changed from:
$userId = $this->findFirstByToken($token);
to:
$userId = (int) $this->findFirstByToken($token);
This is because strict_types are set to true and the call to the deleteToken() method, on line 266, while passing the $userId variable as a parameter will throw an error...
The text was updated successfully, but these errors were encountered:
Summary:
An exception occurs when attempting to logout from a valid user session. It is triggered clicking on the logout link from the site navbar or following the uri directly: 'session/logout'.
Details:
File (Directory) Path: src/Plugins/Auth/
File Name: Auth.php
Line Number: 264
Line Snippet:
$userId = $this->findFirstByToken($token);
Enclosing Method Name: remove
Problem: Attempting to logout from a valid user session is impossible due to an exception being rasied in the process. This happens as a result of calling the deleteToken() and passing the $userId variable as a parameter. If its 'set', its of the string data type. The deleteToken() method requires an one parameter of type: integer.
Suggested solution: This snippet, in line 264, could be changed from:
$userId = $this->findFirstByToken($token);
to:
$userId = (int) $this->findFirstByToken($token);
This is because strict_types are set to true and the call to the deleteToken() method, on line 266, while passing the $userId variable as a parameter will throw an error...
The text was updated successfully, but these errors were encountered: