I have a RegisterForm and LoginForm made with Flask and hashed with sha256. The RegisterForm works, but the login page is not returning anything. I stay in the same login page, the only difference is the url returns this: And the url change to this: Thank you for the help Answer I think you forgot to change the login form
Tag: flask-login
TypeError: __init__() got an unexpected keyword argument ‘number’
I am using Flask to create a /register before call the /login page. This error show when I submit my register and go to ‘/login’. This is my ‘app.py’: This is my ‘init.py’ This is my ‘models.py’ This is the “Traceback” I just wanna understand my problem to solve it. I tried to search this problem, finding some cases, but
Flask heroku noModuleNamed ‘flask_login’
I have a problem when i try to push my flask app to heroku the error is this: Please help! Answer This is telling you that flask_login exists in your local development environment, and you still didn’t yet add it to your requirement.txt before pushing to your heroku app. You will need to regenerate your requirement.txt with : Then push
Can I have 2 user_loader methods in my Flask web application
In my web application users and workers can login and I have 2 different models for them. However, when I try to create a user_loader method for the worker model I receive and error Here is my code Answer @login_manager.user_loader is a decorator present in the login_manager class – it does not represent different types of users (i.e. user and
How is Flask-Login’s request_loader related to user_loader?
I apologize in advance for asking a rather cryptic question. However, I did not understand it despite going through a lot of material. It would be great if you could shed some light on this. What is the purpose of a request_loader in flask-login? How does it interact with the user_loader decorator? If I am using a token based authentication