Skip to content
Snippets Groups Projects
Commit e0c6483d authored by Marco De Donno's avatar Marco De Donno
Browse files

Add the baseurl to the redirections/load for the webauthn protocol

parent c9c0c1c9
No related branches found
No related tags found
No related merge requests found
......@@ -6,7 +6,7 @@ var register_key = async function( e )
try {
var credentialCreateOptionsFromServer = await $.ajax( {
url: '/u2f/begin_activate',
url: baseurl + '/u2f/begin_activate',
dataType: 'json',
method: 'POST',
data: {
......@@ -33,7 +33,7 @@ var register_key = async function( e )
try {
var assertionValidationResponse = await $.ajax( {
url: '/u2f/verify',
url: baseurl + '/u2f/verify',
dataType: 'json',
method: 'POST',
data: newAssertionForServer
......@@ -52,7 +52,7 @@ var login_key = async function()
{
try {
var credentialRequestOptionsFromServer = await $.ajax( {
url: '/u2f/begin_assertion',
url: baseurl + '/u2f/begin_assertion',
dataType: 'json'
} );
......@@ -79,7 +79,7 @@ var login_key = async function()
try {
var response = await $.ajax( {
url: '/u2f/verify_assertion',
url: baseurl + '/u2f/verify_assertion',
dataType: 'json',
method: 'POST',
data: assertion
......@@ -94,7 +94,7 @@ var login_key = async function()
toastr.success( "Logged in" );
location.href = "/";
location.href = baseurl + "/";
}
var b64enc = function( buf )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment