Beispiel #1
0
        private async Task AutoLogin()
        {
            var autologin = new Logincredentials().getcredentialfromlocker(1);

            if (autologin != null)
            {
                autologin.RetrievePassword();

                //check if user changed the password
                Logincredentials login = new Logincredentials();
                bool             canweusethepassword = await login.logincredential(autologin.UserName, autologin.Password, 1);

                switch (canweusethepassword)
                {
                case true:
                    await DataProvider.GrabUserDatatoOffline(1);

                    _navigationService.NavigateTo("HomePage");
                    _Fnavigationservice.NavigateTo("VirDir");
                    break;

                case false: break;
                }
            }
        }