Spaces:
Sleeping
Sleeping
Update static/scripts/login.js
Browse files- 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 |
-
|
|
|
|
| 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 |
}
|