mirror of
https://github.com/zalando/postgres-operator.git
synced 2026-10-20 15:03:39 +02:00
[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:
@@ -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>
|
||||
Reference in New Issue
Block a user