From a40f14591dd9e9dc93f5053b21f7940d19face32 Mon Sep 17 00:00:00 2001 From: Dustin Falgout Date: Tue, 6 Dec 2016 05:25:26 -0600 Subject: [PATCH] add shim for deprecated lightdm.start_authentication() method. --- src/gresource/js/Greeter.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/gresource/js/Greeter.js b/src/gresource/js/Greeter.js index a597feb..d83e70c 100644 --- a/src/gresource/js/Greeter.js +++ b/src/gresource/js/Greeter.js @@ -331,7 +331,11 @@ const __lightdm = new Promise( (resolve, reject) => { * @type {LightDM.Greeter} * @memberOf window */ -__lightdm.then( result => window.lightdm = result ); +__lightdm.then( result => { + result.start_authentication = function( user ) { return this.authenticate( user ); }; + result.start_authentication = result.start_authentication.bind(result); + window.lightdm = result +} ); /**