Fixing some issues with dynamically supporting multiple SSO providers

This commit is contained in:
kevgliss
2015-12-27 17:54:11 -05:00
parent 38b48604f3
commit a7decc1948
7 changed files with 160 additions and 152 deletions

View File

@ -54,8 +54,6 @@ class User(db.Model):
"""
if self.password:
return bcrypt.check_password_hash(self.password, password)
else:
return False
def hash_password(self):
"""
@ -66,8 +64,6 @@ class User(db.Model):
if self.password:
self.password = bcrypt.generate_password_hash(self.password)
return self.password
else:
return None
@property
def is_admin(self):