Cannot override login/register template inside a theme.
Because event handler responsible for overriding the template that is called using namespace is not taking account of ZikulaUserModule and ZikulaZAuthModule work in collaboration while displaying mentioned pages.
Using template call other that FQN works.
I'm sorry, but I cannot understand this ticket. You need to use sentences and punctuation and organize your thoughts. Please rephrase the original ticket and explain more specifically.
Please take a look now.
using ZikulaZAuthModule:Authentication:UnameLogin.html.twig instead of 'namespaced' template naming (e.g. @ZikulaZAuthModule/Authentication/UnameLogin.html.twig) in an AuthenticationMethod class (example) will solve this problem.
This is because namespaced template overrides are handled by this listener and it assumes that the template belongs to the module that is calling it - e.g. it assumes this path MySpecialTheme/Resources/ZikulaUsersModule/views/Authentication/UnameLogin.html.twig instead of MySpecialTheme/Resources/ZikulaZAuthModule/views/Authentication/UnameLogin.html.twig
@Kaik please submit a PR with the fix you recommended.
Change the way templates are called fixing #3401