[feature/oauth] Fix template not refreshing issue

PHPBB3-11673