xrdp-ng: simplified authentication code