daemon: rewrite autologin api