Load user_external before login

Closes https://github.com/owncloud/core/issues/1826

@icewind1991