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

Update settings for django-allauth #293

Merged
merged 2 commits into from
Feb 10, 2025
Merged

Update settings for django-allauth #293

merged 2 commits into from
Feb 10, 2025

Conversation

brianhelba
Copy link
Contributor

@brianhelba brianhelba commented Jan 29, 2025

No description provided.

# Quality of life improvements, but may not work if the browser is closed
ACCOUNT_SESSION_REMEMBER = True
ACCOUNT_LOGIN_ON_EMAIL_CONFIRMATION = True
ACCOUNT_LOGIN_ON_PASSWORD_RESET = True

# These will permit GET requests to mutate the user state, but significantly improve usability
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I now feel more concerned about the security implications of allowing this. I think the default of requiring a user to click a confirmation button isn't too burdensome.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@danlamanna I'm open to other perspectives.

As it stands, this directly makes the site vulnerable to CSRF for these operations.

@brianhelba brianhelba merged commit bf5f468 into master Feb 10, 2025
3 checks passed
@brianhelba brianhelba deleted the allauth branch February 10, 2025 22:14
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

Successfully merging this pull request may close these issues.

1 participant