Fix for new Bcrypt and SqlAlchemy type casting in Postgres

master
Ryan Jarvis 8 years ago
parent 11da3ab8f2
commit 570d5bc587
  1. 2
      {{cookiecutter.app_name}}/{{cookiecutter.app_name}}/user/models.py

@ -32,7 +32,7 @@ class User(UserMixin, SurrogatePK, Model):
username = Column(db.String(80), unique=True, nullable=False)
email = Column(db.String(80), unique=True, nullable=False)
#: The hashed password
password = Column(db.String(128), nullable=True)
password = Column(db.Binary(128), nullable=True)
created_at = Column(db.DateTime, nullable=False, default=dt.datetime.utcnow)
first_name = Column(db.String(30), nullable=True)
last_name = Column(db.String(30), nullable=True)

Loading…
Cancel
Save