Skip to content
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

Login shortcode and gutenberg block not working #59

Closed
NIX-CRO opened this issue Oct 24, 2023 · 7 comments · Fixed by #73
Closed

Login shortcode and gutenberg block not working #59

NIX-CRO opened this issue Oct 24, 2023 · 7 comments · Fixed by #73
Labels
bug Something isn't working

Comments

@NIX-CRO
Copy link

NIX-CRO commented Oct 24, 2023

Hello, first of all, love your work.

On to my issue, my passwordless login works like a charm on my pc through default login form.
The issue is that the login forms i tried creating with provided shortcodes and gutenberg blocks for my users that will register their custom roles through ultimate member don't work. Specificaly login block when I press "Auth" button nothing happens. I tried putting them in a custom popup (both shortcode and gutenberg block) and on a normal wordpress page. Other shortcodes
Register Form, Verify Button, Authenticator List seam to work without issues and I can register authenticator and verify it is working , but when I use Login Form and press "Auth" nothing happens and nothing is loged in a Log. Could you verify this behaviour,

thanks in advance.

PS: Is it possible to translate part of visible text to users?

@My1
Copy link

My1 commented Jan 12, 2024

there is a little bit of info in the Browser Console:

Uncaught TypeError: Cannot read properties of null (reading 'previousElementSibling')
    at HTMLInputElement.wwa_auth (autoptimize_31fb59582e42cf224cf5adbdb4b3ea22.js:23:57)
wwa_auth @ autoptimize_31fb59582e42cf224cf5adbdb4b3ea22.js:23

@yrccondor
Copy link
Owner

Thank you @My1 will fix asap

@yrccondor yrccondor added the bug Something isn't working label Jan 18, 2024
@My1
Copy link

My1 commented Apr 7, 2024

any luck?

@Mathijsvdbeek
Copy link

I also experience problems logging in using a form. Using standard is no problem.

@darkmich
Copy link

I'm seeing the same behavior - the error is on this line:
let wwa_username = this.parentNode.previousElementSibling.previousElementSibling.getElementsByClassName('wwa-user-name')[0].value;
and the error is:
"TypeError: null is not an object (evaluating 'this.parentNode.previousElementSibling.previousElementSibling.getElementsByClassName')

@darkmich
Copy link

Changing that line to this fixed it for our site (I realize that might not work for everyone...):
let wwa_username = document.getElementsByClassName("wwa-user-name")[0].value;

@yrccondor
Copy link
Owner

Is it possible to translate part of visible text to users?

btw if this is still the case, may i ask what do you mean by "visible texts"? you are always welcomed if you would like to help translate this plugin into your language :-) for shortcodes just check out files in gutenberg-src/src/wp-webauthn/languages

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants