diff --git a/components/header/header.vue b/components/header/header.vue
index 9985496..94907b9 100644
--- a/components/header/header.vue
+++ b/components/header/header.vue
@@ -115,7 +115,7 @@
pageContext.urlParsed.pathname.split('/')[1]);
@@ -246,6 +247,11 @@ async function logout() {
cursor: pointer;
}
}
+
+ &:last-child {
+ /* login disabled */
+ margin-right: 1rem;
+ }
}
.userpanel {
diff --git a/pages/auth/login/+Page.vue b/pages/auth/login/+Page.vue
index 53f2536..9a15688 100644
--- a/pages/auth/login/+Page.vue
+++ b/pages/auth/login/+Page.vue
@@ -72,6 +72,7 @@
Create an account
@@ -87,6 +88,7 @@ import navigate from '#/src/navigate.js';
const pageContext = inject('pageContext');
const user = pageContext.user;
+const allowSignup = pageContext.env.allowSignup;
const username = ref('');
const password = ref('');
diff --git a/src/web/server.js b/src/web/server.js
index a81db80..6d6452b 100644
--- a/src/web/server.js
+++ b/src/web/server.js
@@ -146,6 +146,8 @@ export default async function initServer() {
primaryStash: req.user.primaryStash,
},
env: {
+ allowLogin: config.auth.login,
+ allowSignup: config.auth.signup,
maxAggregateSize: config.database.manticore.maxAggregateSize,
},
};