Enabling auto login on MXlinux 18.1

Mx linut uses lightdm as a default login manager which aks for username and password for logging in to enable autologin for user we have to make changes to the file /etc/lightdm/lightdm.conf and uncomment the line autologin-user=user change it to
eg: autologin-user=cipher

Due to some reason i faced issue autologin lot working after making the above change i had to add autologin-user=cipher to lightdm-gtk-greeter.conf to get it working.

#sudo vi /etc/lightdm/lightdm-gtk-greeter.conf

background = /usr/share/backgrounds/linux.png
theme-name = Greybird
xft-antialias = true
xft-hintstyle = hintslight
xft-rgba = rgb
icon-theme-name = Numix-Circle
hide-user-image = true
indicators = ~host;~spacer;~session;~a11y;~~⌨;~layout;~~☺;~language;~power
keyboard = onboard
a11y-states = ~keyboard
position = -100%,start 92%,end
font-name = Sans 11
xft-dpi = 96
user-background = false