I was finishing up a simple user login with Flask and flask-Bcrypt. However, when trying to login with a user that is stored in my database, I keep getting this error
You need to apply .decode('utf-8') to your self.password:
.decode('utf-8')
self.password
def set_password(self, password): """Set password.""" self.password = bcrypt.generate_password_hash(password).decode('utf-8')