1
0
mirror of synced 2025-02-20 20:50:59 +01:00

Fix logic error in eacoin.py

This commit is contained in:
kami-poi 2021-01-24 16:28:34 +08:00 committed by Jennifer Taylor
parent 9c6fec5ce5
commit 5e7061c23b

View File

@ -131,7 +131,7 @@ class PASELIHandler(Base):
return make_resp(2, 0)
userid = self.data.local.user.from_session(session)
if session is None:
if userid is None:
# Refuse to do anything
print("Invalid session for eacoin consume request")
return make_resp(2, 0)