Skip to content

Commit

Permalink
configs
Browse files Browse the repository at this point in the history
extra information on config variables.
  • Loading branch information
mb-wali committed Aug 17, 2020
2 parents e431ff2 + 24b29ff commit 9cd3f33
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion invenio_config_tugraz/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,24 @@
"""

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
# ========
Expand Down

0 comments on commit 9cd3f33

Please sign in to comment.