diff --git a/src/masonite/__version__.py b/src/masonite/__version__.py index 4c9f8f24f..7f8658719 100644 --- a/src/masonite/__version__.py +++ b/src/masonite/__version__.py @@ -2,7 +2,7 @@ __title__ = 'masonite' __description__ = 'The core for the Masonite framework' __url__ = 'https://github.com/MasoniteFramework/masonite' -__version__ = '2.3.5' +__version__ = '2.3.6' __author__ = 'Joseph Mancuso' __author_email__ = 'joe@masoniteproject.com' __licence__ = 'MIT' diff --git a/src/masonite/auth/guards/WebGuard.py b/src/masonite/auth/guards/WebGuard.py index 6136f3a9a..a2e78a689 100644 --- a/src/masonite/auth/guards/WebGuard.py +++ b/src/masonite/auth/guards/WebGuard.py @@ -75,8 +75,8 @@ def login(self, name, password): # while PostgreSQL can store it as bytes # This is to prevent to double encode the password as bytes password_as_bytes = self._get_password_column(model) - if (not isinstance(password_as_bytes, bytes)): - password_as_bytes = bytes(password_as_bytes, 'utf-8') + if not isinstance(password_as_bytes, bytes): + password_as_bytes = bytes(password_as_bytes or '', 'utf-8') if model and bcrypt.checkpw(bytes(password, 'utf-8'), password_as_bytes): if not self._once: