Arcader7171 commited on
Commit
97bd914
·
verified ·
1 Parent(s): 6cfd0cc

Update static/scripts/login.js

Browse files
Files changed (1) hide show
  1. static/scripts/login.js +3 -1
static/scripts/login.js CHANGED
@@ -10,10 +10,12 @@ function login() {
10
  .then((response) => {
11
  if (response.status == 401) {
12
  alert(`Error - ${response.statusText}`);
 
13
  } else if (!response.ok) {
14
  return;
15
  } else if (response.ok) {
16
- window.location.reload();
 
17
  }
18
  })
19
  }
 
10
  .then((response) => {
11
  if (response.status == 401) {
12
  alert(`Error - ${response.statusText}`);
13
+ return;
14
  } else if (!response.ok) {
15
  return;
16
  } else if (response.ok) {
17
+ alert("Successful")
18
+ // window.location.reload();
19
  }
20
  })
21
  }