Skip to content

Commit

Permalink
Merge pull request #239 from NBISweden/hotfix/request-access
Browse files Browse the repository at this point in the history
Fixed bug where Request Access failed for unregistered users
  • Loading branch information
kusalananda authored Aug 23, 2017
2 parents c8982eb + 2562102 commit ce80d83
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tornado/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ def get_current_user(self):
return db.User.select().where( db.User.email == email ).get()
except peewee.DoesNotExist:
## Not saved in the database yet
return db.User(email = email, name = name)
return db.User(email = email.decode('utf-8'),
name = name.decode('utf-8'))
else:
return None

Expand Down

0 comments on commit ce80d83

Please sign in to comment.