-
Notifications
You must be signed in to change notification settings - Fork 295
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
AttributeError: 'NoneType' object has no attribute 'password' #238
Comments
Can confirm,This is an issue with Flask-User. |
Everything works if I remove the UserManager class from my code. It is an issue with Flask-User. |
I've been a bit swamped lately. Care to submit a fix as a pull request? -- Ling |
@yoshifan509 which Python version are you using? I have this problem with Python 3.7 |
It also happens when you delete a single user from the database and then reload the url you are in or even the base url for the website. It works again if you delete the session cookie |
@saitam1 I am using 3.6.5. |
@yoshifan509 Is deleting the cookie a good solution for this problem? Don't you think we should let the issue open until somebody fixes it inside the code? |
Deleting cookies worked for me - but really should be fixed for "real". |
is there anyway i can "force" delete cookie for user if the user was deleted from db? |
confirm it still happens ...when removing db.. but not everytime...first time a day after several deletes redos |
Hi, I just change the code in user_mixin.py as following, and it seems works: after: user_password = '' if user_manager.USER_ENABLE_AUTH0 or user == None else user.password[-8:] |
Fixes lingthio#238 AttritbuteError: 'NoneType' object has no attribute 'password'
Happens if I delete the DB file. Works if I leave it alone for a few.
Nothing with variables, this is all something with Flask-User
Full Traceback:
The text was updated successfully, but these errors were encountered: