Skip to content

Commit cbf3aac

Browse files
committed
Supported Password
1 parent a51cf36 commit cbf3aac

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

passkeys/templates/passkeys.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,12 @@ function tryLogin(formid)
8686
console.log(options)
8787
return navigator.credentials.get(options);
8888
}).then(function(assertion) {
89+
if (assertion.type == "password"){
90+
$("#inputUsername").val(assertion.id);
91+
$("#inputPassword").val(assertion.password);
92+
$("#" + window.loginForm).submit();
93+
return;
94+
}
8995
pk = $("#passkeys")
9096
if (pk.length == 0)
9197
{

0 commit comments

Comments
 (0)