mirror of
https://gitlab.com/mishakmak/pam-fprint-grosshack.git
synced 2026-04-09 04:13:33 +02:00
device: Support deleting a single fingerprint for user
Add a method to delete only a Fingerprint for a device, this is required by they g-c-c UI design and at the same time it reflects the libfprint API, where so far only a fingerprint at time can be deleted.
This commit is contained in:
@ -247,7 +247,7 @@
|
||||
<doc:definition>
|
||||
No further prints can be enrolled on this device, <doc:ref type="method" to="Device.EnrollStop">Device.EnrollStop</doc:ref> should now be called.
|
||||
|
||||
<doc:ref type="method" to="DeleteEnrolledFingers2">Delete other prints</doc:ref> from the device first to continue
|
||||
<doc:ref type="method" to="DeleteEnrolledFinger">Delete other prints</doc:ref> from the device first to continue
|
||||
(e.g. from other users). Note that old prints or prints from other operating systems may be deleted automatically
|
||||
to resolve this error without any notification.
|
||||
</doc:definition>
|
||||
@ -307,7 +307,8 @@
|
||||
<doc:para>
|
||||
This call only exists for compatibility reasons, you should instead claim the device using
|
||||
<doc:ref type="method" to="Device.Claim">Device.Claim</doc:ref> and then call
|
||||
<doc:ref type="method" to="DeleteEnrolledFingers2">DeleteEnrolledFingers2</doc:ref>.
|
||||
<doc:ref type="method" to="DeleteEnrolledFingers2">DeleteEnrolledFingers2</doc:ref> or
|
||||
<doc:ref type="method" to="DeleteEnrolledFinger">DeleteEnrolledFinger</doc:ref>.
|
||||
</doc:para>
|
||||
</doc:description>
|
||||
|
||||
@ -335,6 +336,31 @@
|
||||
|
||||
<!-- ************************************************************ -->
|
||||
|
||||
<method name="DeleteEnrolledFinger">
|
||||
<arg type="s" name="finger_name" direction="in">
|
||||
<doc:doc>
|
||||
<doc:summary>A string representing the finger to delete. See
|
||||
<doc:ref type="description" to="fingerprint-names">Fingerprint names</doc:ref>.
|
||||
Note that "any" is not a valid finger name for this method.</doc:summary>
|
||||
</doc:doc>
|
||||
</arg>
|
||||
<doc:doc>
|
||||
<doc:description>
|
||||
<doc:para>
|
||||
Delete the enrolled fingerprint for the user currently claiming the device with <doc:ref type="method" to="Device.Claim">Device.Claim</doc:ref>.
|
||||
</doc:para>
|
||||
</doc:description>
|
||||
|
||||
<doc:errors>
|
||||
<doc:error name="&ERROR_PERMISSION_DENIED;">if the caller lacks the appropriate PolicyKit authorization</doc:error>
|
||||
<doc:error name="&ERROR_CLAIM_DEVICE;">if the device was not claimed</doc:error>
|
||||
<doc:error name="&ERROR_INVALID_FINGERNAME;">if the finger name passed is invalid</doc:error>
|
||||
</doc:errors>
|
||||
</doc:doc>
|
||||
</method>
|
||||
|
||||
<!-- ************************************************************ -->
|
||||
|
||||
<method name="Claim">
|
||||
<arg type="s" name="username" direction="in">
|
||||
<doc:doc><doc:summary>The username for whom to claim the device. See <doc:ref type="description" to="usernames">Usernames</doc:ref>.</doc:summary></doc:doc>
|
||||
|
||||
Reference in New Issue
Block a user