How to disable account registration on login page?

160 Views Asked by At

There was a need to disable account registration on the login page.

After small search i found an issue on github and when this option has been added: https://github.com/kiwitcms/Kiwi/issues/2500

I found required parameter at /tcms/settings/common.py and official documentation show me to change value of REGISTRATION_ENABLED to False: https://kiwitcms.readthedocs.io/en/stable/configuration.html

I changed value and restart docker container from directory with it:

docker-compose restart

But account registration field still appear. Clearly, further action is required. But I can't find the answer in the official documentation and I don't have enough experience with docker. Thanks.

2

There are 2 best solutions below

1
AkaZLOY On

When I carefully read the documentation again, i'm realized that any customization requires remake the docker image:

https://kiwitcms.readthedocs.io/en/latest/installing_docker.html#customized-docker-image

I updated repository under kiwi directory:
git fetch

git checkout v11.7 //latest kiwi release at this moment

had made necessary changes at tcms/settings/common.py

built new docker image:

make docker-image

and started services:

docker-compose up -d

0
Jan On

I was able to accomplish this by setting the environment variable during docker startup:

KIWI_REGISTRATION_ENABLED: false