pennersr / django-allauth

Integrated set of Django applications addressing authentication, registration, account management as well as 3rd party (social) account authentication.
https://allauth.org
MIT License
9k stars 2.97k forks source link

Headless sign up view doesn't respect is_open_for_signup adapter method #3826

Closed grahamhealy20 closed 1 week ago

grahamhealy20 commented 2 weeks ago

Hi there,

I'm currently looking at wiring up my headless allauth app with django-invitations. I want to make sure that the application only allows sign ups where a user has been invited. Currently, looking at the SignupView, it doesn't seem to check whether or not sign ups are open like the HTML template view does using get_adapter(self.request).is_open_for_signup(self.request) method via the CloseableSignupMixin. Is there a way to do something similar with the headless app? I think it may be possible to just inherit the mixin, but maybe there needs to be a headless version of it to handle the different content type.

Many thanks for all of the hard work to make the headless API a reality! It's working really well for me!

pennersr commented 1 week ago

Fixed via dabd8269