43f1d0578b
This commit adds the ability to log in with a fingerprint instead of a password (assuming the user is enrolled and fingerprint isn't disabled via gsettings) https://bugzilla.gnome.org/show_bug.cgi?id=657823
27 lines
723 B
JavaScript
27 lines
723 B
JavaScript
// -*- mode: js2; indent-tabs-mode: nil; js2-basic-offset: 4 -*-
|
|
|
|
const DBus = imports.dbus;
|
|
const Lang = imports.lang;
|
|
const Shell = imports.gi.Shell;
|
|
const Signals = imports.signals;
|
|
|
|
const FprintManagerIface = {
|
|
name: 'net.reactivated.Fprint.Manager',
|
|
methods: [{ name: 'GetDefaultDevice',
|
|
inSignature: '',
|
|
outSignature: 'o' }]
|
|
};
|
|
|
|
function FprintManager() {
|
|
this._init();
|
|
};
|
|
|
|
FprintManager.prototype = {
|
|
_init: function() {
|
|
DBus.system.proxifyObject(this,
|
|
'net.reactivated.Fprint',
|
|
'/net/reactivated/Fprint/Manager');
|
|
}
|
|
};
|
|
DBus.proxifyPrototype(FprintManager.prototype, FprintManagerIface);
|