Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial

Ron Tovbin
Python Web Development Techdegree Student 6,268 PointsAny help would be appreciated
Not sure what's wrong.
from flask_bcrypt import generate_password_hash
from flask_bcrypt import check_password_hash
def set_password(User,password):
hw_password = generate_password_hash(password)
User.passwword = hw_password
return User
2 Answers

Chris Howell
Python Web Development Techdegree Graduate 49,703 PointsIts hard to tell without the FULL context of the other code using this function.
But from this file I do see 1 problem.
from flask_bcrypt import generate_password_hash
from flask_bcrypt import check_password_hash
def set_password(User,password):
hw_password = generate_password_hash(password)
# User.passwword is mispelled :-)
User.passwword = hw_password
return User
Let me know if that helps. If not the problem may be elsewhere.

Ron Tovbin
Python Web Development Techdegree Student 6,268 PointsDuh ! Thanks !