Passwordless login redirect (but it doesn't work yet)

This commit is contained in:
Dusan Jakub
2023-09-26 16:08:46 +02:00
parent 7cc76c3e99
commit fc0af19981
2 changed files with 7 additions and 4 deletions

View File

@@ -116,7 +116,7 @@
</div>
<form action="#" method="POST">
<input name="sessionId" type="hidden" value="somesessionid">
<input name="sessionId" type="hidden" value="{sessionId}">
<div id="form-generated"></div>
</form>
</div>
@@ -257,7 +257,7 @@
result.replaceChildren();
webAuthn.loginOnly({ name: userName })
.then(body => {
form("/webauthn/login", {
form("/auth/passwordless/login", {
'webAuthnId': body.id,
'webAuthnRawId': body.rawId,
'webAuthnResponseClientDataJSON': body.response.clientDataJSON,
@@ -286,7 +286,7 @@
webAuthn.registerOnly({ name: userName, displayName: userName /*firstName + " " + lastName*/})
.then(body => {
form("/webauthn/register", {
form("/auth/passwordless/register", {
'webAuthnId': body.id,
'webAuthnRawId': body.rawId,
'webAuthnResponseAttestationObject': body.response.attestationObject,