Auth0 Home Blog Docs

Javascript error on Universal Login Page

Hi there,

When visting wp-login.php I am redirected to the Universal Login Page. The page does not render correctly with the login box missing.

Within the developer console I am receiving the following error:

Uncaught TypeError: Cannot read property 'match' of undefined
    at login?state=xxxx&protocol=oauth2&scope=openid email profile&response_type=code&redirect_uri=xxxx&connection=Username-Password-Authentication:43

It looks like the error is being thrown from this (line 43):

if(extraParams.message.match(/sign up/)) {
    	config.extraParams.initialScreen = 'signUp';
       }

The reason the error is thrown is that within the config.extraParams object, there is no “message” key.

Do I need to add any configuration to WordPress for the config.extraParams.message value to exist?