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
No mention of secret_key in docs, and UserMixin #391
Comments
The docs mention what methods are required and that
|
I just realized that my mistake might have been to require a db.commit to set those attributes. I should have made them actual properties and called commit in the setter. That's probably why flask-login could never set any of them. But the secret_key being implied is still wrong imo because people use flask-login to simplify flask login. Assuming they already know about flask session is wrong. |
Re-opening until docs explain dependency on Flask's secret key being set. |
Docs added with #417, closing this issue. |
Make sure these boxes are checked before submitting your issue--thank you!
The docs need to be made a bit clearer. I struggled for a long time before I realized that UserMixin is required in my User model. Even though I provided all those attributes and the get_id method that are mentioned in the docs myself.
It wasn't until I made my User model inherit from UserMixin and removed my own versions of those attributes that it started working.
And then I noticed I was missing secret_key because that isn't mentioned in the docs at all, the github README is much better than the docs but I didn't know that. The link to the docs is the first thing I clicked on.
The text was updated successfully, but these errors were encountered: