The previous behavior was a leftover from an old refactor.
This change aligns the pre-login hook with the behavior of other hooks,
although it may break some edge cases that relied on the previous inconsistent
behavior.
Fixes#2107
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>