mirror of
https://gitlab.com/mishakmak/pam-fprint-grosshack.git
synced 2026-04-09 04:13:33 +02:00
tests: Check that PAM stops if the device could not be claimed
This commit is contained in:
@ -429,3 +429,11 @@ def SetVerifyScript(device, script):
|
||||
'''
|
||||
|
||||
device.verify_script = script
|
||||
|
||||
@dbus.service.method(DEVICE_MOCK_IFACE,
|
||||
in_signature='s', out_signature='')
|
||||
def SetClaimed(device, user):
|
||||
if user == '':
|
||||
device.claimed_user = None
|
||||
else:
|
||||
device.claimed_user = user
|
||||
|
||||
Reference in New Issue
Block a user