Exemple #1
0
        private void SendLoginInfo(object sender, EventArgs args)
        {
            if (input_Email.Text.Length > 0 && input_Password.Text.Length > 0)
            {
                btn_SendLoginInfo.Enabled = false;

                ApiCommunication.SendLoginRequest(input_Email.Text, input_Password.Text);
            }
        }
        private void btn_Login_Click(object sender, EventArgs e)
        {
            if (Input_Email.Text.Length > 0 && Input_Password.Text.Length > 0)
            {
                btn_Login.Enabled = false;

                ApiCommunication.SendLoginRequest(Input_Email.Text, Input_Password.Text);



                btn_Login.Enabled = true;
            }
        }
Exemple #3
0
        private void CheckIfShouldPerformLogin()
        {
            // Self explanatory
            if (!UserSettings.RememberLogin)
            {
                return;
            }

            // Check if the email and pw are saved (should be at this point) and perform login
            if (UserSettings.UserEmail.Length > 0 && UserSettings.UserPassword.Length > 0)
            {
                ApiCommunication.SendLoginRequest(UserSettings.UserEmail, UserSettings.UserPassword);
            }
        }