django-allauth

How to disable intermediate signout page in Django allauth

笑着哭i 提交于 2020-06-24 20:52:31
问题 How to disable the intermediate signout page from django allauth. When the user clicks on the signout link on my site I want him to logout right away, I want to remove this intermediate page 回答1: Set ACCOUNT_LOGOUT_ON_GET to True in your settings. Also see the documentation 回答2: Updated for December 2018. Using a GET request is probably a bad idea due to browsers prefetching urls from the URL bar. Chrome (as of right now) is pretty bad for this; it'll send a GET request to pages it think you

How to disable intermediate signout page in Django allauth

此生再无相见时 提交于 2020-06-24 20:50:27
问题 How to disable the intermediate signout page from django allauth. When the user clicks on the signout link on my site I want him to logout right away, I want to remove this intermediate page 回答1: Set ACCOUNT_LOGOUT_ON_GET to True in your settings. Also see the documentation 回答2: Updated for December 2018. Using a GET request is probably a bad idea due to browsers prefetching urls from the URL bar. Chrome (as of right now) is pretty bad for this; it'll send a GET request to pages it think you

Django Rest Framework Custom Register View (RegisterView) failing to return token + user data

允我心安 提交于 2020-06-17 12:32:43
问题 I'm using allauth and rest_auth in my django rest framework app. When registering an user a token (key) is returned, what I'm trying to achieve is to return the token + user data after registration. To do so I've the following serializer: from rest_framework import serializers from rest_framework.response import Response from allauth.account import app_settings as allauth_settings from allauth.utils import email_address_exists from allauth.account.adapter import get_adapter from allauth

How can I change the “account already exists” message in Django allauth?

筅森魡賤 提交于 2020-05-15 04:21:08
问题 When trying to log in with a social account while there already being an account with that email, the following message shows: An account already exists with this e-mail address. Please sign in to that account first, then connect your Google account. Now I would like to change that message. At first I tried to override ACCOUNT_SIGNUP_FORM_CLASS = 'mymodule.forms.MySignupForm' and gave it my own raise_duplicate_email_error method, but that method is never called. The form looks like this:

resetting password of user django rest auth

梦想与她 提交于 2020-04-17 22:50:27
问题 Good day, I am trying to override the password_reset_email of Django allauth. the issue is that it successfully overrides, but the data (password reset link, site name, and domain name) does not get passed to the email which eventually means that the user is not able to reset password because no link was sent. my password reset serializer class PasswordResetSerializer(PasswordResetSerializer): def get_email_options(self): return { 'subject_template_name': 'account/email/password_reset_key

overriding restauth password reset email issues

自闭症网瘾萝莉.ら 提交于 2020-04-16 08:19:19
问题 Good day, I am trying to override the password_reset_email of Django allauth. the issue is that it successfully overrides but I get the html code just sent to the user instead of the html representation. I was expecting a styled email just like I got for my confirmation email, but this does not seem to be the case. In my templates/registration/password_reset_email.html {% load i18n %} {% autoescape off %} <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport"

allauth unverified email remains unverified once email expires

大兔子大兔子 提交于 2020-02-29 07:00:07
问题 I have a custom user model. and I use Django rest auth to handle authentication of users. the problem is that after sign up when the email is sent. if the user doesn't verify the email before it expires, it seems that it remains stuck like that indefinitely. I was expecting the verification email to be sent again since ACCOUNT_EMAIL_VERIFICATION = "mandatory" in my settings, from the documentation, it is supposed to resend the verification message by default, but this isnt happening. I am

django-allauth: facebook login button wouldn't do anything [closed]

∥☆過路亽.° 提交于 2020-02-25 05:23:16
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 13 days ago . I am using django-allauth library to integrate Facebook login into my website (on localhost). The problem is the following: when I have finished setting everything up and I try to click on my Facebook login button, nothing occurs at all. On hover, the browser shows the following link on the Facebook login button

django-allauth: facebook login button wouldn't do anything [closed]

Deadly 提交于 2020-02-25 05:23:06
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 13 days ago . I am using django-allauth library to integrate Facebook login into my website (on localhost). The problem is the following: when I have finished setting everything up and I try to click on my Facebook login button, nothing occurs at all. On hover, the browser shows the following link on the Facebook login button

django-allauth: facebook login button wouldn't do anything [closed]

Deadly 提交于 2020-02-25 05:22:32
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 13 days ago . I am using django-allauth library to integrate Facebook login into my website (on localhost). The problem is the following: when I have finished setting everything up and I try to click on my Facebook login button, nothing occurs at all. On hover, the browser shows the following link on the Facebook login button