-
-
Notifications
You must be signed in to change notification settings - Fork 166
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
Add an example of using the package without allauth
to the documentation
#239
Comments
You can do this with the setting |
Sorry, I solved this issue but forgot to write about it. Yes, I needed a solution that works without the A session variable named django-invitations/invitations/views.py Line 195 in 5945342
django-invitations/invitations/adapters.py Lines 13 to 15 in 5945342
So, there is no dependency on adapter provided by django-invitations/invitations/adapters.py Lines 71 to 81 in 5945342
Before this I also check that the user is not authenticated and registration is allowed. If the checks fail, I simply redirect the user to the login page. So, there is no problem, and we can close this topic. But I think it would be useful to somehow reflect this in the documentation. |
allauth
to the documentation
Hello,
I want to use
django-invitations
package to allow current website users to invite new ones. But at the same time, I want to allow access to the registration form only to those visitors who follow the invitation link. Other visitors (registered or unregistered) should not have access to the registration form page. In short, it should be something like a private club.The first thing that comes to mind is to use Django sessions for this. But it looks like
django-invitations
does not create any session variable when accepting an invitation unless the adapter fordjango-allauth
is used.I think sending a session variable with a known name when the corresponding settings variable is set or even by default could be a very useful feature for cases like mine.
Or maybe there is a more obvious solution to this problem?
Thank you.
The text was updated successfully, but these errors were encountered: