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

Allow configurable source for cookie name #1

Open
zerosym opened this issue Oct 2, 2019 · 0 comments
Open

Allow configurable source for cookie name #1

zerosym opened this issue Oct 2, 2019 · 0 comments

Comments

@zerosym
Copy link

zerosym commented Oct 2, 2019

If username is mutable a new cookie is set every time the username (or email, in the case of USERNAME_FIELD='email') is changed. Redefining get_username to return a fixed identifier that may be semantically meaningless is undesirable.

cookie_name = self._cookie_name(request.user.get_username())

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

1 participant