Example #1
0
        /// <summary>
        /// 'Reset password' button is clicked
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void ResetPasswordButton_Click(object sender, RoutedEventArgs e)
        {
            ResetPasswordWindow w = new ResetPasswordWindow();

            w.Closed += new EventHandler(w_Closed);
            w.Show();
        }
        private void ResetPasswordExecuted(object sender, RoutedEventArgs e)
        {
            var user = (UserDetailsModel)((DataGrid)sender).SelectedItem;

            var resetPasswordDialog = new ResetPasswordWindow(this, /*TODO: Change*/ user.user, providerManagers, new MembershipPasswordGenerator(providerManagers.MembershipSettings));

            resetPasswordDialog.ShowDialog();
        }
Example #3
0
        private void MenuItem_Click_ResetPassword(object sender, RoutedEventArgs e)
        {
            ResetPasswordWindow win = new ResetPasswordWindow(_accountSignIner.SignInOptions.Password)
            {
                MD5Round = 2
            };

            win.ShowDialog();
        }
Example #4
0
        /// <summary>
        /// 'Reset password' window is closed
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        void w_Closed(object sender, EventArgs e)
        {
            ResetPasswordWindow w = sender as ResetPasswordWindow;

            if (w.DialogResult == true)
            {
                string newPassword = w.NewPassword;
                // Call to backend thread
                ThreadPool.QueueUserWorkItem(StartWork_ChangePassword, new ResetPasswordWrapper((this.itemDataForm.CurrentItem as UserView).id, newPassword));
            }
        }
Example #5
0
 private void OnResetInstancePasswordCommand()
 {
     ResetPasswordWindow.PromptUser(Instance, CredentialsStore.Default.CurrentProjectId);
 }
Example #6
0
        private void login_Copy3_Click(object sender, RoutedEventArgs e)
        {
            var nextWindow = new ResetPasswordWindow();

            nextWindow.Show();
        }