@ -213,6 +213,11 @@ class AntergosThemeUtils {
this . background _images _dir = background _images _dir ;
}
is _not _empty ( value ) {
empty _values = [ null , 'null' , undefined , 'undefined' ] ;
return empty _values . findIndex ( v => v === value ) === - 1 ;
}
find _images ( dirlist ) {
var images = [ ] ,
@ -661,7 +666,7 @@ class AntergosTheme {
var user _id = $ ( this ) . attr ( 'id' ) ,
selector = ` . ${ user _id } ` ,
user _session _cached = _util . cache _get ( 'user' , user _id , 'session' ) ,
user _session = ( null !== user _session _cached ) ? user _session _cached : lightdm . default _session ;
user _session = ( _util . is _not _empty ( user _session _cached ) ) ? user _session _cached : lightdm . default _session ;
if ( _self . auth _pending || null !== _self . selected _user ) {
lightdm . cancel _authentication ( ) ;