From 03024a227cf9d374fb4f5a5cb6243593f971b937 Mon Sep 17 00:00:00 2001 From: Laura Date: Thu, 5 Dec 2024 16:14:38 +0100 Subject: [PATCH] Signup: remove Signup envs while retaining Login functionality --- UV-GUIDE.md | 20 +++----------------- themes/MUG/invenio.cfg | 5 ++--- 2 files changed, 5 insertions(+), 20 deletions(-) diff --git a/UV-GUIDE.md b/UV-GUIDE.md index f463ab5..ccb6d12 100644 --- a/UV-GUIDE.md +++ b/UV-GUIDE.md @@ -34,7 +34,7 @@ dependencies = [ uv sync ``` -### **3. build assets** +### **build assets** Compile and build assets for the project: @@ -42,7 +42,7 @@ Compile and build assets for the project: uv run invenio-cli assets build ``` -### **4. start/destroy Services** +### **start/destroy Services** Set up and start required services: @@ -51,7 +51,7 @@ uv run invenio-cli services destroy uv run invenio-cli services setup ``` -### **5. run the app** +### **run the app** Start the Invenio application: @@ -67,17 +67,3 @@ issues related to architecture (e.g., `-84 architecture` errors) on macOS system export SYSTEM_VERSION_COMPAT=1 arch -arm64 brew install python ``` - -### **recreating virtual env** - -```bash -rm -rf .venv -uv venv --prompt invenio-v12 && source .venv/bin/activate -``` - -### **Notes: for services setup** - -```bash -uv run invenio-cli services destroy -uv run invenio-cli services setup -``` diff --git a/themes/MUG/invenio.cfg b/themes/MUG/invenio.cfg index 2116264..d4d9c0e 100644 --- a/themes/MUG/invenio.cfg +++ b/themes/MUG/invenio.cfg @@ -163,7 +163,7 @@ DATACITE_DATACENTER_SYMBOL = "" # ---------------- # See https://github.com/inveniosoftware/invenio-accounts/blob/master/invenio_accounts/config.py ACCOUNTS_LOCAL_LOGIN_ENABLED = True # enable local login -SECURITY_REGISTERABLE = True # local login: allow users to register +SECURITY_REGISTERABLE = False # local login: allow users to register SECURITY_RECOVERABLE = True # local login: allow users to reset the password SECURITY_CHANGEABLE = True # local login: allow users to change psw # SECURITY_CONFIRMABLE = True # local login: users can confirm e-mail address @@ -229,7 +229,6 @@ I18N_LANGUAGES = [("de", _("German"))] THEME_SHOW_FRONTPAGE_INTRO_SECTION = False """Set True for frontpage Intrp.""" - # Invenio-Override # -------------- @@ -279,4 +278,4 @@ OVERRIDE_RESOURCE_OVERVIEW = True """Resource overview section""" THEME_FOOTER_TEMPLATE = "invenio_override/footer_mug.html" -"""footer template""" +"""footer template""" \ No newline at end of file