Beispiel #1
0
        async private void Login(HttpClientRequests requests)
        {
            var response = await requests.SignIn();

            //check if account already created
            if (response == System.Net.HttpStatusCode.OK)
            {
                SaveUserInfo(requests._email, requests._password, true);
                await DisplayAlert("Login", "Success", "OK");

                await Navigation.PushAsync(new DashBoard());

                Navigation.RemovePage(Navigation.NavigationStack[0]);                 // remove the root page
            }
            else
            {
                await DisplayAlert("Login", "Failed", "Ko");
            }
        }