Skip to content

Commit

Permalink
add 'app_id' check
Browse files Browse the repository at this point in the history
  • Loading branch information
konstantintogoi committed Apr 13, 2020
1 parent 0cf927f commit c5e8ce2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aiomailru/sessions.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,9 @@ def cookies(self, cookies):

@property
def sig_circuit(self):
if self.uid and self.private_key:
if self.uid and self.private_key and self.app_id:
return SignatureCircuit.CLIENT_SERVER
elif self.secret_key:
elif self.secret_key and self.app_id:
return SignatureCircuit.SERVER_SERVER
else:
return SignatureCircuit.UNDEFINED
Expand Down

0 comments on commit c5e8ce2

Please sign in to comment.