-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom Fields #487
Comments
Hi @talamihg ... I pasted the JSON here into my local install and see the fields just fine: They only appear on the Signup tab ... are you only looking on the Login tab? If not, do you see any errors in your JS console? |
Same issue here. Also the "extra settings" don't work either. Solved: |
Humm, would be any dashboard settings on manage.auth0.com that would be overriding the settings within WordPress? |
@singularityjay - Can you check that those are being output in the page code? View source and search for what you've added. The extra settings field is pretty widely used and works fine on my end so it might be malformed JSON in there. @talamihg - No, Lock generally happens in-place in terms of customization. Passwordless adjustments in the dashboard will map over but not fields. In my last reply I asked to make sure that you're on the signup tab when you're checking and there are no errors in the console. Can you confirm? |
Sorry I didn't respond with that request. Yes, I am viewing the Sing Up tab and I am only seeing the default email and password fields. I am not seeing any JS errors but there is one JS warning.
The strange thing, the URL referred to is added to my Allowed Web Origins settings on the auth0 dashboard. |
@talamihg - Thanks for that. I see that warning every now and then as well. As long as logins/signups are functioning properly then nothing to worry on that. I'm not entirely sure where to go with this one. The field JSON is just saved in the DB and output to the page where Lock picks it up. If you're on a test install, I would try the usual WP debugging - default theme and no other plugins. If you can send me a URL to where this is being output directly, I can take a look. Not a bad idea to include your settings export file again as well (minus anything sensitive). |
@talamihg - It looks like what's happening here is that the extra fields are not being pulled into the global options var before Lock is initialized. You can re-initialize Lock in the console using the global options once everything has loaded and the fields show up fine. It looks like the I'll put through a PR now and link it to here. If you're able to either pull the branch or use the diff to test, that would be very helpful! Thank you! |
Fixed in #491 and merged into |
It doesn't seem that the Custom Signup Fields option is working. I've included some JSON, but its not changing Lock to include those fields.
I am assuming that you want the square brackets around the entire array like shown here: https://auth0.com/docs/libraries/lock/v11/configuration#text-fields ?
Can confirm that the JSON block above is producing this on /wp-login.php
The text was updated successfully, but these errors were encountered: