예제 #1
0
        void AlterarSenha(string login)
        {
            try
            {
                using (new Carregando("Alterando Senha..."))
                {
                    string[] arquivo = File.ReadAllLines($"{mainPath}\\BD\\{login}");

                    arquivo[1] = "senha=" + txtNovaSenha.Text;

                    File.WriteAllLines($"{mainPath}\\BD\\{login}", arquivo);

                    GoogleDrive.DeletarItem(login);

                    GoogleDrive.Upload($"{mainPath}\\BD\\{login}");
                }

                MessageBox.Show("Senha alterada com sucesso!", "", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
            catch
            {
                throw;
            }
        }