From 24b29ff668e9f0f047607475c62de2e8d41666e0 Mon Sep 17 00:00:00 2001 From: mb Date: Fri, 31 Jul 2020 09:48:34 +0200 Subject: [PATCH] extra information on config variables. --- invenio_config_tugraz/config.py | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/invenio_config_tugraz/config.py b/invenio_config_tugraz/config.py index ebdb187..b4833e7 100644 --- a/invenio_config_tugraz/config.py +++ b/invenio_config_tugraz/config.py @@ -137,7 +137,24 @@ able to register, or to navigate to /sigup page. """ SECURITY_CONFIRMABLE = False -"""Allow user to confirm their email address.""" +"""Allow user to confirm their email address. + +Instead user will get a welcome email. +""" + + +ACCOUNTS = True +"""Tells if the templates should use the accounts module. + +If False, you won't be able to login via the web UI. + +Instead if you have a overriden template somewhere in your config.py: +like this: +SECURITY_LOGIN_USER_TEMPLATE = 'invenio_theme_tugraz/accounts/login.html' +then you can remove this condition from header_login.htm: +{%- if config.ACCOUNTS %} +to render your overriden login.html +""" # Accounts # ========