]> git.proxmox.com Git - mirror_novnc.git/commit
Normalize the credentials presence check
authorlhchavez <lhchavez@lhchavez.com>
Thu, 11 Mar 2021 13:38:13 +0000 (05:38 -0800)
committerlhchavez <lhchavez@lhchavez.com>
Thu, 11 Mar 2021 14:42:11 +0000 (06:42 -0800)
commit0c55c6475701b66c28c245483aeaf4d0179a3cca
treef0aac848933d51dce3dfcf69ca26073807329c49
parent18593154d3cf8973dbddb9f97615453efa6b3b0d
Normalize the credentials presence check

Most places that check for the presence / absence of credentials compare
them against `undefined`, except the one for Plain authentication.

This change makes the very last place to use the same pattern (instead
of checking for falsiness) for consistency. Additionally, there are ways
to configure PAM to accept empty passwords, so it's possible for a user
to legitimately send an empty string as password.
core/rfb.js