There is an upcoming change, enable local logins via code. It’s currently in beta status, so it is enabled by default. Did you try disabling that? There is a chance the experience is better with it disabled.
I have a similar problem on my forum, where signing up with an invite code doesn’t work because email isn’t sent to the user at all.