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 +} ); /**