Security: Fixed compatibility of User::getIdentity()