From a7de5dd52c93f69a5c0796c65f4ebae2bf70d4af Mon Sep 17 00:00:00 2001 From: Sam Date: Sun, 25 Aug 2019 12:50:42 +0200 Subject: [PATCH] Client - disable registration - fix #36 --- Makefile.custom.config.example | 2 +- docs/_sources/features.rst.txt | 5 +- docs/_sources/installation.rst.txt | 6 +- docs/features.html | 7 +- docs/index.html | 2 +- docs/installation.html | 6 +- docs/searchindex.js | 2 +- docsrc/source/features.rst | 5 +- docsrc/source/installation.rst | 6 +- fittrackee_api/fittrackee_api/config.py | 2 +- .../fittrackee_api/tests/conftest.py | 1 + .../src/components/User/Form.jsx | 143 ++++++++++-------- fittrackee_client/src/utils/index.js | 2 + pytest.ini | 2 + 14 files changed, 111 insertions(+), 80 deletions(-) diff --git a/Makefile.custom.config.example b/Makefile.custom.config.example index dd0096d3..8767e9e1 100644 --- a/Makefile.custom.config.example +++ b/Makefile.custom.config.example @@ -1,8 +1,8 @@ export REACT_APP_API_URL = http://$(HOST):$(API_PORT) export REACT_APP_THUNDERFOREST_API_KEY= export REACT_APP_GPX_LIMIT_IMPORT=10 +export REACT_APP_ALLOW_REGISTRATION=true export WEATHER_API= -export FT_ALLOW_REGISTRATION=true # for dev env export CODACY_PROJECT_TOKEN= diff --git a/docs/_sources/features.rst.txt b/docs/_sources/features.rst.txt index 5d290660..dea672ad 100644 --- a/docs/_sources/features.rst.txt +++ b/docs/_sources/features.rst.txt @@ -1,8 +1,8 @@ Features ######## -Features list -~~~~~~~~~~~~~ +List +~~~~ - Account creation (only standard user, not admin) - 6 sports supported: - Cycling (Sport) @@ -22,6 +22,7 @@ Features list - longest duration - maximum speed - Activities list and filter +- User registration can be disabled. **Notes:** diff --git a/docs/_sources/installation.rst.txt b/docs/_sources/installation.rst.txt index 0589b5bb..becad176 100644 --- a/docs/_sources/installation.rst.txt +++ b/docs/_sources/installation.rst.txt @@ -46,7 +46,8 @@ Dev environment - Update **Makefile.config** file if needed and copy/paste the **ThunderForest** and **Dark Sky** API keys value in - **Makefile.custom.config** file (see example) + **Makefile.custom.config** file (see example). User registration can + also be disabled in **Makefile.custom.config**. - Install Python virtualenv, React and all related packages and initialize the database: @@ -82,7 +83,8 @@ Prod environment - Update **Makefile.config** file if needed and copy/paste the **ThunderForest** and **Dark Sky** API keys value in - **Makefile.custom.config** file (see example) + **Makefile.custom.config** file (see example). User registration can + also be disabled in **Makefile.custom.config**. - Install Python virtualenv, React and all related packages and initialize the database: diff --git a/docs/features.html b/docs/features.html index fed054db..9631a241 100644 --- a/docs/features.html +++ b/docs/features.html @@ -75,7 +75,7 @@ role="menu" aria-labelledby="dLabelLocalToc">