From 570d5bc587cc029878d18dd74e0044e71104ce91 Mon Sep 17 00:00:00 2001 From: Ryan Jarvis Date: Fri, 7 Oct 2016 11:31:08 -0700 Subject: [PATCH] Fix for new Bcrypt and SqlAlchemy type casting in Postgres --- .../{{cookiecutter.app_name}}/user/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/{{cookiecutter.app_name}}/{{cookiecutter.app_name}}/user/models.py b/{{cookiecutter.app_name}}/{{cookiecutter.app_name}}/user/models.py index 81c3b19..721dcf8 100644 --- a/{{cookiecutter.app_name}}/{{cookiecutter.app_name}}/user/models.py +++ b/{{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)