Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible in after_signup function to know user who successfully signup? #288

Open
nurzhannogerbek opened this issue May 27, 2018 · 1 comment

Comments

@nurzhannogerbek
Copy link

Hello! First of all THANK YOU for this wonderfull project! =)

I am trying to customize signup view in my own project.

views.py:

from account.views import SignupView as BaseSignupView

class SignupView(BaseSignupView):
    def generate_username(self, form):
        pass

    def after_signup(self, form):
        super(SignupView, self).after_signup(form)
        print(self.request.user)
        # other code

self.request.user always return AnonymousUser. Is it possible in after_signup function to know user who successfully signup?

@arunikayadav42
Copy link

Yes you can display a message in the respective view :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants