[UI] Remove manual authentication for login user (#2635)

* Remove manual authentication
* update python libraries
* remove psycopg2 and bring back wal-e
* remove unused vars
This commit is contained in:
Ida Novindasari
2024-05-23 10:51:46 +02:00
committed by GitHub
parent 1b08ee1acf
commit 1839baaad3
6 changed files with 22 additions and 198 deletions
+7 -1
View File
@@ -3,7 +3,13 @@
<head>
<meta charset="utf-8">
<title>PostgreSQL Operator UI</title>
<script>
const hash = localStorage.getItem("original-location-hash");
if (null !== hash) {
localStorage.removeItem("original-location-hash");
location.replace("/" + hash)
}
</script>
<!-- fonts -->
@@ -1,13 +0,0 @@
<html>
<head>
<title>Storing client location ...</title>
</head>
<body>
<script language="javascript">
if (document.location.hash != null && document.location.hash != "") {
localStorage.setItem("login-url-hash", document.location.hash)
}
window.location.href = document.location.pathname + "?redirect=1"
</script>
</body>
</html>
@@ -1,18 +0,0 @@
<html>
<head>
<title>Restoring client location ...</title>
</head>
<body>
<script language="javascript">
// /login/authorized
hash = localStorage.getItem("login-url-hash")
if (null != hash) {
localStorage.removeItem("login-url-hash")
location.href = "/" + hash
}
else {
location.href = "/"
}
</script>
</body>
</html>