Commit 612326d1 authored by John Hodge's avatar John Hodge
Browse files

Log out on reset

parent 1290fcdd
......@@ -371,6 +371,7 @@ class VendServer():
self.vstatus.cur_user = ''
self.vstatus.cur_selection = ''
self._last_card_id = -1
self.dispense.logOut()
self.vstatus.mk.set_messages([(self.center('BYE!'), False, 1.5)])
self.reset_idler(2)
return
......@@ -471,6 +472,7 @@ class VendServer():
if key == 11:
if self.vstatus.cur_pin == '':
self.vstatus.cur_user = ''
self.dispense.logOut()
slef.reset_idler()
return
......@@ -518,6 +520,7 @@ class VendServer():
if len(self.vstatus.cur_user) <8:
if key == 11:
self.vstatus.cur_user = ''
self.dispense.logOut()
self.reset_idler()
return
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment