Coder Social home page Coder Social logo

Comments (5)

chachra avatar chachra commented on September 16, 2024

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.

acquayefrank avatar acquayefrank commented on September 16, 2024

Could you kindly clearify that. Should I add the desired url as a Site in my admin??

from django-rest-auth.

chachra avatar chachra commented on September 16, 2024

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.

acquayefrank avatar acquayefrank commented on September 16, 2024

Thanks for the help

from django-rest-auth.

ConorMcGee avatar ConorMcGee commented on September 16, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.