[auth] Fix password prompt on Windows
[auth] Fix password prompt on Windows

It was wrong to just assume that stdin is "0" everywhere.

Followup to 7514fa2b09ced30aa00468ba3a2aaa3bda39d6ff

Fixes #2276

github/hub,github/hub,github/hub,github/hub