Ejemplo n.º 1
0
        async void DataCheck()
        {
            var usertype = StringOperations.BasicValidation(UserName);

            if (usertype != null)
            {
                await MyApp.MainPage.DisplayAlert("Username field should be empty or less than 3 chars", usertype, "ok");

                return;
            }


            //Checking Email input
            if (!StringOperations.ValidateEmailInput(EmailId))
            {
                await MyApp.MainPage.DisplayAlert("Error!", "Please enter valid email", "ok");

                return;
            }

            //checking the password
            var result = StringOperations.BasicValidation(Password);

            if (result != null)
            {
                await MyApp.MainPage.DisplayAlert("Error!", result, "ok");

                return;
            }

            if (!StringOperations.ValidatePasswordInput(Password))
            {
                await MyApp.MainPage.DisplayAlert("Error!", "Password policy mismatch", "ok");

                return;
            }


            if (Password != PasswordVerif)
            {
                await MyApp.MainPage.DisplayAlert("Error!", "Password verify mismatch", "ok");

                return;
            }

            ContinueSignUp();
        }
Ejemplo n.º 2
0
        async void CheckData()
        {
            //Checking Email input
            if (!StringOperations.ValidateEmailInput(Username))
            {
                await MainApp.MainPage.DisplayAlert("Error!", "Please enter valid email", "ok");

                return;
            }

            //checking the password
            var result = StringOperations.BasicValidation(Password);

            if (result != null)
            {
                await MainApp.MainPage.DisplayAlert("Error!", result, "ok");

                return;
            }

            ContinueSignIn(Username, Password);
        }
Ejemplo n.º 3
0
        async void DataCheck()
        {
            //Checking Email input
            if (!StringOperations.ValidateEmailInput(UserName))
            {
                await MainApp.MainPage.DisplayAlert("Error!", "Please enter valid email", "ok");

                return;
            }

            //checking the password
            var result = StringOperations.BasicValidation(Password);

            if (result != null)
            {
                await MainApp.MainPage.DisplayAlert("Error!", result, "ok");

                return;
            }

            if (!StringOperations.ValidatePasswordInput(Password))
            {
                await MainApp.MainPage.DisplayAlert("Error!", "Password policy mismatch", "ok");

                return;
            }


            if (Password != PasswordVerif)
            {
                await MainApp.MainPage.DisplayAlert("Error!", "Password verify mismatch", "ok");

                return;
            }



            ContinueSignUp();
        }