User Authentication - Flask Tutorial Series #8
HTML-код
- Опубликовано: 11 сен 2024
- In this episode of the Flask tutorial series, we learn how to build a user authentication system in Flask using databases.
◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾
📚 Programming Books & Merch 📚
🐍 The Python Bible Book: www.neuralnine...
💻 The Algorithm Bible Book: www.neuralnine...
👕 Programming Merch: www.neuralnine...
💼 Services 💼
💻 Freelancing & Tutoring: www.neuralnine...
🌐 Social Media & Contact 🌐
📱 Website: www.neuralnine...
📷 Instagram: / neuralnine
🐦 Twitter: / neuralnine
🤵 LinkedIn: / neuralnine
📁 GitHub: github.com/Neu...
🎙 Discord: / discord
This series is really good. Please make an advanced one once you finish this one, I am sure this could become the reference playlist in the future for anyone trying to learn Flask!
This is a really nice series. I would love to see and advanced series :)
Nice Video!
Thanks!
Now, I can start my college project!
Can you do a detail video on docker compose? That would be a great help.
Could you make additional video of how to add email confirmation when user sign up, reset password?
thanks man, very useful
Do you have a reason that you are using the old style of SQLAlchemy queries instead of 2.0? Or it it just preference?
I have a general question on Flask. Where are people using this? My webhosting service now requires me to get a private server to run Flask apps.
Why not get id in the def__repr__(self) function?
What do you think of a series of videos about Django? Now is the most used web dev tool in Python and more used than Flask
Does this package have any functions for forgotten passwords and resetting passwords?
Thanks!
Great, it would be nice to authenticate using a JWT token for API 🏹 🗝 🛡
Is the source code available? Did not find it in your github... thx!
Can someone please tell me the intro name if it's a song?
I guess you can use song recognization function in those mainstream music app
@@mikiyax The one I know, Shazam, is not available for my phone
@@mikiyax It's in the video description now that youtube automatically detects the music and adds it. Thanks for the comment though, I wouldn't have see it without you.
I wrote the same code but when I try to log in I always get a "Error: Invalid salt". After some debugging, I found out it is not saving the hashed password in the correct format. I have to add a decode function at the end: hashed_password = bcrypt.generate_password_hash(password).decode('utf-8')
hashed_password = bcrypt.generate_password_hash(password).decode('utf-8') This should fix it. I started getting this error when I switched to postgres. It gets encoded twice when submitted to the database. \\x24326224313224483352757749766438764134333757365142464f4f4f464959664d66673575467873754e466250716f3166375753696955556b2e36. this is not the correct format. hope this helps
Check your User table, if you are using PostgreSQL you should be see this format $2b$12$y4zQ0uufL84y7xEGPOTTveA0wKdLouZMetlSvkz3IzIhyLpwYhzTK