Closed Guiona closed 1 year ago
It's impossible for me to diagnose the problem with a snippet of code, but you can see the error clearly, and it is that Flask-Login does not see a user_loader
decorated function. I see that you have one in the code you pasted here, so you need to figure out why Flask-Login does not see it. There is really nothing in this project that can cause the problem, the issue is probably a bug on your part, like maybe failing to import the file that has this user_loader
function.
Thanks for your feedbacks
After reading many times my code I found the problem.
Missing this line from my flasky.py
from app.models import User
Hi 🖐️
Have you already try to used flask_ldap3_login to authenticated users?
I've write an little app without Blueprint and that works fine but now when I used Blueprint (with your book 2nd edition under my 👀 ) nothing works... The user_loader decorator is missing:
Exception: Missing user_loader or request_loader. Refer to http://flask-login.readthedocs.io/#how-it-works for more info.
app/models.py
Any ideas ❓
Thanks 🙇♂️