Add auto login
Merge pull request #977 from loiccouturier/master

Add auto login