Move passkey login to a button on the login page
This commit is contained in:
5
public/passkey/passkey.js
vendored
5
public/passkey/passkey.js
vendored
@@ -212,7 +212,10 @@ async function passkey_check(csrf_token,redirect)
|
||||
console.log('Passkey: Process Success');
|
||||
|
||||
// Direct to the home page
|
||||
window.location.href = (redirect !== undefined) ? redirect : '/';
|
||||
if (data.success)
|
||||
window.location.href = (redirect !== undefined) ? redirect : '/';
|
||||
else
|
||||
alert(data.msg || 'Unknown error occurred');
|
||||
},
|
||||
error: function(e,status,error) {
|
||||
throw new Error(status || 'Unknown error occurred');
|
||||
|
Reference in New Issue
Block a user