Skip to content

Commit

Permalink
fixed issue with auth password column being mandatory
Browse files Browse the repository at this point in the history
  • Loading branch information
josephmancuso committed Jan 11, 2019
1 parent a77c5dc commit e14d18e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion masonite/auth/Auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def login(self, name, password):
"""
auth_column = self.auth_model.__auth__
try:
password_column = self.auth_model.password if hasattr(self.auth_model, 'password') else self.auth_model.__password__
password_column = self.auth_model.password if not hasattr(self.auth_model, '__password__') else self.auth_model.__password__
except AttributeError as e:
raise AttributeError('Your model does not have a password column or a designated __password__ attribute. Set the __password__ attribute to the name of your password column.') from e

Expand Down
2 changes: 1 addition & 1 deletion masonite/info.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
"""Module for specifying the Masonite version in a central location."""

VERSION = '2.1.8'
VERSION = '2.1.9'

0 comments on commit e14d18e

Please sign in to comment.