It only disables echo asking for the password and lets the terminal to handle everything else.
It fixes#1392 since blank spaces are not discarded as they did before.
It also cleans the login code a little bit to improve readability.
Upstream-commit: 2357fecc92c57e2fcd4a37c60d713508210358f7
Component: engine