Comments (5)
http://www.tivix.com/This is the "Site" model data that causes it. Fix
the url in the db for it, and it should be fixed.
On Wed, Jan 28, 2015 at 5:05 PM, acquayefrank [email protected]
wrote:
Hi,
I'm currently using django-rest-auth for normal user registration. Problem
is every-time a user signups, the email confirmation link has the wrong url.
Eg. User signs up at www.example.com the email confirmation url is
www.api.example.com which should not be so. I'm wondering how I could fix
that—
Reply to this email directly or view it on GitHub
#48.
from django-rest-auth.
Could you kindly clearify that. Should I add the desired url as a Site in my admin??
from django-rest-auth.
Correct. In your Site model.
On Wed, Jan 28, 2015 at 5:19 PM, acquayefrank [email protected]
wrote:
Could you kindly clearify that. Should I add the desired url as a Site in
my admin??—
Reply to this email directly or view it on GitHub
#48 (comment)
.
from django-rest-auth.
Thanks for the help
from django-rest-auth.
Did this really fix your problem? AllAuth seems to take the url from the header of the request instead of the site model, so I can't see how, but maybe I'm missing something.
That is, the AllAuth model's send method calls build_absolute_uri, which uses the request to generate the domain, not the current site. As far as I can see, the only way around this is to set a proxy domain in my nginx settings, which I'd rather not do. Trying to find an easier way, but it's proving really tricky.
AllAuth Code
Django build_absolute_uri
from django-rest-auth.
Related Issues (20)
- Password Reset Confirm Expect parameter which is not in email HOT 1
- TEMPLATE DOES NOT EXIST
- Option to just need one password field for new account / reset/change password. HOT 2
- Can't login without email even though it's supposed to be optional
- Django and react login with google HOT 2
- TypeError: 'PhoneNumber' object is not subscriptable
- Deprectated import ugettext_lazy from django.utils.translation HOT 1
- ConnectionRefusedError: Registration endpoint response
- Update for Django 4.0 HOT 6
- Reverse for 'password_reset_confirm' not found. 'password_reset_confirm' is not a valid view function or pattern name. HOT 8
- Wrong response on using login without verifying the user HOT 1
- `LogoutView`'s non-compliance with `drf-spectacular`
- ImportError: cannot import name 'url' from 'django.conf.urls' HOT 6
- The package doesn't work with django 4.0.*
- The package doesn't work with django 4.0.* HOT 1
- The package doesn't work with django 4.0
- The package doesn't work with django 4.0.*
- ImproperlyConfigured at /api/v1/auth/registration/account-email-verification-sent/
- The package doesn't work with Django from 3.12
- Failed to run with the lates allauth lib HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from django-rest-auth.