Пример #1
0
        private void Accountform_Confirming(Users user, string pwd)
        {
            try
            {
                BL_Users.Update(user, pwd);

                mainContent.Content = null;
            }
            catch (Exception)
            {
                throw;
            }
        }
Пример #2
0
        public void btnChangepwd_Click(object sender, RoutedEventArgs e)
        {
            var obj = ((FrameworkElement)sender).DataContext as Users;

            string newPass = StringExtensions.GetRandomString();

            BL_Users.Update(obj, newPass);

            BL_Users.SendCredentials(obj.Firstname, obj.Lastname, obj.Email, obj.Username, newPass);

            MessageBox.Show("The new password has been sent to the user.", "New password");

            BindData();
        }