Skip to content

Commit

Permalink
t
Browse files Browse the repository at this point in the history
  • Loading branch information
muratkaanmesum committed May 8, 2024
1 parent 3b1a42a commit 9158e42
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions API/static/scripts/login.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@ async function loginForm(event)
username: username,
password: password
};
const endpoint = `send-email-for-verification/`;
const endpoint = `auth/send-email-for-verification/`;
const loginButton = document.getElementById('login-button');
loginButton.disabled = true;
const spinner = new Spinner({isVisible:true,className:"login-button-loader"}, loginButton);
spinner.render();
try{
let response = await fetch(endpoint, {
let response = await request(endpoint, {
method: 'POST',
headers: {
'Content-Type': 'application/json',
Expand Down
2 changes: 1 addition & 1 deletion API/static/scripts/verification.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ document.getElementById("verify").addEventListener("click", async function() {

async function postVerificationCode(value) {
try {
let response = await request(`email-verification/`, {
let response = await request(`auth/email-verification/`, {
method: 'POST',
headers: {
'Content-Type': 'application/json',
Expand Down

0 comments on commit 9158e42

Please sign in to comment.