Update for webkit2

Changed lightdm.is_authenticated
This commit is contained in:
Artur Mancha 2021-07-23 03:15:14 +01:00 committed by GitHub
parent b179abcb1a
commit ef6e34a110
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -54,7 +54,8 @@ function onResize(el, callback) {
// This is called by lightdm when the auth request is completed
function authentication_complete() {
if (lightdm.is_authenticated) {
lightdm.login (lightdm.authentication_user, lightdm.default_session);
//lightdm.login (lightdm.authentication_user, lightdm.default_session);
lightdm.login (lightdm.authentication_user, lightdm.start_session_sync, 'xfce4'); //lightdm-webkit2-greeter
} else {
message("Authentication failed", true);
lightdm.cancel_authentication();