diff --git a/masonite/auth/Auth.py b/masonite/auth/Auth.py index 1a0e18443..5d898b2f1 100644 --- a/masonite/auth/Auth.py +++ b/masonite/auth/Auth.py @@ -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 diff --git a/masonite/info.py b/masonite/info.py index 03078408c..5aa4fad26 100644 --- a/masonite/info.py +++ b/masonite/info.py @@ -1,3 +1,3 @@ """Module for specifying the Masonite version in a central location.""" -VERSION = '2.1.8' +VERSION = '2.1.9'