Skip to content

Commit

Permalink
Merge pull request #104 from MasoniteFramework/fix-postgres-sqlite-st…
Browse files Browse the repository at this point in the history
…ring-issue

fixed postgres and sqlite password byte issue
  • Loading branch information
josephmancuso committed May 2, 2018
2 parents 10b8826 + 83853f6 commit 0c4590a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions masonite/snippets/auth/controllers/RegisterController.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ def show(self, Request, Application):
def store(self, Request):
''' Register a new user '''
# register the user
password = bcrypt.hashpw(
bytes(Request.input('password'), 'utf-8'), bcrypt.gensalt()
)
password = bytes(bcrypt.hashpw(
bytes(Request.input('password'), 'utf-8'), bcrypt.gensalt()
)).decode('utf-8')

auth.AUTH['model'].create(
name=Request.input('name'),
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
'masonite.contracts',
'masonite.helpers',
],
version='1.6.2',
version='1.6.3',
install_requires=[
'validator.py==1.2.5',
'cryptography==2.2.2',
Expand Down

0 comments on commit 0c4590a

Please sign in to comment.