client-barcode: Rename login_code to auth_blob
This commit is contained in:
parent
7a1ee41ca2
commit
f7963b9acf
|
@ -62,7 +62,7 @@ class Status:
|
|||
self._reset()
|
||||
|
||||
def _reset(self):
|
||||
self.login_code = None
|
||||
self.auth_blob = None
|
||||
self.login_name = None
|
||||
self.balance = None
|
||||
self.transfers = None
|
||||
|
@ -97,11 +97,11 @@ class Status:
|
|||
print()
|
||||
|
||||
def logged_in(self):
|
||||
return self.login_code is not None
|
||||
return self.auth_blob is not None
|
||||
|
||||
def login(self, code):
|
||||
def login(self, auth_blob):
|
||||
assert(not self.logged_in())
|
||||
self.login_code = code
|
||||
self.auth_blob = auth_blob
|
||||
self.login_name = 'Sebastian Pipping' ############
|
||||
self.balance = decimal.Decimal('0.20') ######################
|
||||
self.transfers = list()
|
||||
|
|
Loading…
Reference in New Issue