Fixed bug when logging in silently
Merge pull request #605 from Phryxiil/2.x

Fixed bug when logging in silently