Updated .gitignore to include key and build files

This commit is contained in:
Xevion
2019-06-29 18:32:34 -05:00
parent 56dc780c0e
commit f482a2a223
2 changed files with 7 additions and 0 deletions

5
.gitignore vendored Normal file
View File

@@ -0,0 +1,5 @@
key
/app.db
/key
/migrations/*
/venv/*

View File

@@ -15,6 +15,8 @@ class User(UserMixin, db.Model):
self.password_hash = generate_password_hash(password)
def check_password(self, password):
if self.password_hash is None:
raise "{} has no password_hash set!".format(self.__repr__())
return check_password_hash(self.password_hash, password)
def __repr__(self):