mirror of
https://gitlab.com/mishakmak/pam-fprint-grosshack.git
synced 2026-04-08 20:03:34 +02:00
Save using storage
Save the fingerprint using the storage functions so we can verify the data we enroll.
This commit is contained in:
committed by
Daniel Drake
parent
b1b5e2b495
commit
8529a43b0d
@ -449,10 +449,15 @@ static void enroll_stage_cb(struct fp_dev *dev, int result,
|
|||||||
struct FprintDevice *rdev = user_data;
|
struct FprintDevice *rdev = user_data;
|
||||||
FprintDevicePrivate *priv = DEVICE_GET_PRIVATE(rdev);
|
FprintDevicePrivate *priv = DEVICE_GET_PRIVATE(rdev);
|
||||||
struct session_data *session = priv->session;
|
struct session_data *session = priv->session;
|
||||||
|
const char *username = "hadess"; // FIXME
|
||||||
|
int r;
|
||||||
|
|
||||||
g_message("enroll_stage_cb: result %d", result);
|
g_message("enroll_stage_cb: result %d", result);
|
||||||
if (result == FP_ENROLL_COMPLETE)
|
if (result == FP_ENROLL_COMPLETE) {
|
||||||
fp_print_data_save(print, session->enroll_finger);
|
r = storages[priv->storage_type].print_data_save(print, session->enroll_finger, username);
|
||||||
|
if (r < 0)
|
||||||
|
result = FP_ENROLL_FAIL;
|
||||||
|
}
|
||||||
|
|
||||||
g_signal_emit(rdev, signals[SIGNAL_ENROLL_STATUS], 0, result);
|
g_signal_emit(rdev, signals[SIGNAL_ENROLL_STATUS], 0, result);
|
||||||
fp_img_free(img);
|
fp_img_free(img);
|
||||||
|
|||||||
Reference in New Issue
Block a user