[feature/oauth] More work on login

PHPBB3-11673