diff options
author | Sunil Shetye | 2025-07-11 12:41:33 +0530 |
---|---|---|
committer | Sunil Shetye | 2025-07-11 12:41:33 +0530 |
commit | 1e8b95de07c283e118c4f41cc5e4faac1e3361a3 (patch) | |
tree | 8f1c24deaf333a8bd9b5c014a69173f1623c630d | |
parent | 745d3ba27d1aab1654f4963cc664d229bc56548b (diff) | |
download | Common-Interface-Project-1e8b95de07c283e118c4f41cc5e4faac1e3361a3.tar.gz Common-Interface-Project-1e8b95de07c283e118c4f41cc5e4faac1e3361a3.tar.bz2 Common-Interface-Project-1e8b95de07c283e118c4f41cc5e4faac1e3361a3.zip |
use POST_ACTIVATE_REDIRECT_URL instead of request.get_host()
-rw-r--r-- | blocks/authAPI/views.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/blocks/authAPI/views.py b/blocks/authAPI/views.py index 49dbdac2..8afd799a 100644 --- a/blocks/authAPI/views.py +++ b/blocks/authAPI/views.py @@ -25,8 +25,7 @@ def activate_user(request, uid, token): Link to this route is sent via email to user for verification """ - protocol = 'https://' if request.is_secure() else 'http://' - web_url = protocol + request.get_host() + '/api/auth/users/activation/' # URL comes from Djoser library + web_url = settings.POST_ACTIVATE_REDIRECT_URL + 'api/auth/users/activation/' # URL comes from Djoser library return render(request, 'activate_user.html', {'uid': uid, 'token': token, |