| commit | 57d9a456df679d68eb84a3e0c4fd65639b9c2cf8 | [log] [tgz] |
|---|---|---|
| author | j <[email protected]> | Wed Jan 15 21:05:48 2020 -0800 |
| committer | GitHub <[email protected]> | Wed Jan 15 21:05:48 2020 -0800 |
| tree | c7fe5f46db396ccc263908879f19ba02ac23ac73 | |
| parent | f45170c43229c0d34d10fa750d459b99c4809b56 [diff] |
add login redirect
diff --git a/init.js b/init.js index 15597b3..e3144fc 100644 --- a/init.js +++ b/init.js
@@ -743,6 +743,7 @@ }) if (typeof dtpsPrevUser == "undefined") { + if (JSON.parse(user).errors) window.location.href = "/?dtpsLogin=true"; //go to login screen dtps.user = JSON.parse(user); dtps.user.obs = JSON.parse(userObs); if (dtps.user.obs[0]) {