N°6658 - Reset the "current user" status (defensive programming)

This commit is contained in:
Romain Quetiez
2023-11-10 16:33:56 +01:00
parent 347156f900
commit 473c4cf3fa

View File

@@ -867,6 +867,8 @@ class UserRights
*/
public static function Login($sLogin, $sAuthentication = 'any')
{
self::ResetCurrentUserData();
$oUser = self::FindUser($sLogin, $sAuthentication);
if (is_null($oUser))
{