Giter Club home page Giter Club logo

Comments (3)

yrccondor avatar yrccondor commented on June 15, 2024

Hi,
The log looks fine so the problem may caused by the server response. If you know how to check network requests in the browser's devtool please let me know server's response on your authentication request so I can try to figure out what happened

from wp-webauthn.

alflexRH avatar alflexRH commented on June 15, 2024

Sorry for the delay.
i guess that the request to admin-ajax.php should return json data.
Sometimes it does:

{ "challenge": "yZfI-JE4pPo7.......", "rpId": ".......", "userVerification": "required", "allowCredentials": [ { "type": "public-key", "id": "4u8J-..........." } ], "timeout": 60000, "clientID": "170811432........." }

but sometimes it doesnt, and it responds the HTML code of the login page itself. (below is just a snippet)

`

Powered by WordPress







					<p>Please enter the two-factor authentication (2FA) verification code below to login. Depending on your 2FA setup, you can get the code from the 2FA app or it was sent to you by email.</p><p><strong>Note: if you are supposed to receive an email but did not receive any, please click the Resend Code button to request another code.</strong></p>				<p>
				</br>
				<label for="authcode">Authentication Code:</label>
				<input type="tel" name="authcode" id="authcode" class="input" value="" size="20" pattern="[0-9]*" autocomplete="off" />
				<script>
					const authcode = document.getElementById('authcode');
					authcode.addEventListener('input', function() {
					this.value = this.value.trim();
					});
				</script>
			</p>`

There is no json data at the beginning or end of the html code. Is there anything i can test to pin down the issue ?

Thanks,
Remco

from wp-webauthn.

yrccondor avatar yrccondor commented on June 15, 2024

looks like some other 2FA plugin is trying to take over the login page before you actually login. Could you please let me know what 2FA plugin you are using? I can then investigate if there's any compatibility issues

from wp-webauthn.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.