Skip to content

Commit

Permalink
Fix login issue
Browse files Browse the repository at this point in the history
  • Loading branch information
hakanu committed Aug 3, 2023
1 parent 5f13597 commit 3ca75f1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion pervane/serve.py
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,8 @@ def login():
username = request.form['username']
password = request.form['password']
user = User.query.filter_by(username=username).first()
if user and bcrypt.checkpw(password.encode('utf8'), user.password.encode('utf8')):
if (user and bcrypt.checkpw(
password.encode('utf8'), user.password)):
login_user(user)
session['logged_in'] = True
return redirect('/')
Expand Down
2 changes: 1 addition & 1 deletion pervane/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.1.8
0.1.9

0 comments on commit 3ca75f1

Please sign in to comment.