Spaces:
Running
Running
Update static/login.html
Browse files- static/login.html +2 -2
static/login.html
CHANGED
@@ -60,14 +60,14 @@
|
|
60 |
(async function() {
|
61 |
const session = await checkAuth();
|
62 |
if (session) {
|
63 |
-
window.location.href = '/
|
64 |
} else {
|
65 |
initiateOAuth2Login();
|
66 |
}
|
67 |
})();
|
68 |
|
69 |
function initiateOAuth2Login() {
|
70 |
-
const success = `${window.location.origin}/
|
71 |
const failure = `${window.location.origin}/login`;
|
72 |
|
73 |
account.createOAuth2Session(
|
|
|
60 |
(async function() {
|
61 |
const session = await checkAuth();
|
62 |
if (session) {
|
63 |
+
window.location.href = '/dashboard';
|
64 |
} else {
|
65 |
initiateOAuth2Login();
|
66 |
}
|
67 |
})();
|
68 |
|
69 |
function initiateOAuth2Login() {
|
70 |
+
const success = `${window.location.origin}/dashboard`;
|
71 |
const failure = `${window.location.origin}/login`;
|
72 |
|
73 |
account.createOAuth2Session(
|