I use the same code to define a custom login template file , and it works.
I “solved” the issue by modifying the default template file in my theme folder, but if this is indeed a bug, it should still be fixed.
I found the issue. A function was hooked onto ‘admin-init’ was redirecting to home_url() and preventing the call to admin-ajax.php for non-admins. I added ” !DOING_AJAX ” to the conditional for the redirect.