Skip to content

Commit 9158e42

Browse files
t
1 parent 3b1a42a commit 9158e42

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

API/static/scripts/login.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,13 @@ async function loginForm(event)
3232
username: username,
3333
password: password
3434
};
35-
const endpoint = `send-email-for-verification/`;
35+
const endpoint = `auth/send-email-for-verification/`;
3636
const loginButton = document.getElementById('login-button');
3737
loginButton.disabled = true;
3838
const spinner = new Spinner({isVisible:true,className:"login-button-loader"}, loginButton);
3939
spinner.render();
4040
try{
41-
let response = await fetch(endpoint, {
41+
let response = await request(endpoint, {
4242
method: 'POST',
4343
headers: {
4444
'Content-Type': 'application/json',

API/static/scripts/verification.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ document.getElementById("verify").addEventListener("click", async function() {
4949

5050
async function postVerificationCode(value) {
5151
try {
52-
let response = await request(`email-verification/`, {
52+
let response = await request(`auth/email-verification/`, {
5353
method: 'POST',
5454
headers: {
5555
'Content-Type': 'application/json',

0 commit comments

Comments
 (0)