This is the problem:
EDIT: and here’s the fix: FIX: don't activate un-confirmed email on omniauth authentication by LeoMcA · Pull Request #5176 · discourse/discourse · GitHub