Speak now
Please Wait Image Converting Into Text...
Embark on a journey of knowledge! Take the quiz and earn valuable credits.
Challenge yourself and boost your learning! Start the quiz now to earn credits.
Unlock your potential! Begin the quiz, answer questions, and accumulate credits along the way.
General Tech Bugs & Fixes 2 years ago
Posted on 16 Aug 2022, this text provides information on Bugs & Fixes related to General Tech. Please note that while accuracy is prioritized, the data presented might not be entirely correct or up-to-date. This information is offered for general knowledge and informational purposes only, and should not be considered as a substitute for professional advice.
Turn Your Knowledge into Earnings.
I'm trying to test my password reset configuration on my localhost using django-rest-auth. The email verification and registration work, and I can trigger a password reset event and send an email, but the email contains the wrong domain. Right now it is passing a link containing my-site.com as the domain instead of 0.0.0.0:8000 as the domain. I am running the app inside a docker container which is why it is 0.0.0.0:8000 instead of 127.0.0.1:8000.
my-site.com
0.0.0.0:8000
127.0.0.1:8000
Current result:
You're receiving this email because you requested a password reset for your user account at My Site. Please go to the following page and choose a new password: http://my-site.com/auth/password-reset/confirm/OA/55d-7dc2614593146ac3ce82/ Your username, in case you've forgotten: testaccount Thanks for using our site! The My Site team
Expected result
You're receiving this email because you requested a password reset for your user account at My Site. Please go to the following page and choose a new password: http://0.0.0.0:8000/auth/password-reset/confirm/OA/55d-7dc2614593146ac3ce82/ Your username, in case you've forgotten: testaccount Thanks for using our site! The My Site team
My url file for my registration is:
from django.urls import path, include from allauth.account.views import ConfirmEmailView from . import views urlpatterns = [ path('registration/account-email-verification-sent/', views.null_view, name='account_email_verification_sent'), path('registration/account-confirm-email/', ConfirmEmailView.as_view(), name='account_confirm_email'), path('registration/complete/', views.complete_view, name='account_confirm_complete'), path('password-reset/confirm/(idb64>//', views.null_view, name='password_reset_confirm'), path('', include('rest_auth.urls')), path('registration/', include('rest_auth.registration.urls')), ]
I ran across another post that suggested changing the site id, but I'm not sure this is correct.
How do I get it to pass the currently served domain instead of the site id domain?
No matter what stage you're at in your education or career, TuteeHub will help you reach the next level that you're aiming for. Simply,Choose a subject/topic and get started in self-paced practice sessions to improve your knowledge and scores.
General Tech 10 Answers
General Tech 7 Answers
General Tech 3 Answers
General Tech 9 Answers
General Tech 2 Answers
Ready to take your education and career to the next level? Register today and join our growing community of learners and professionals.