Password changing

This commit is contained in:
Aurélie Delhaie
2022-05-29 17:55:34 +02:00
parent 4cf1d4b3b0
commit 2e76c8cd6a
23 changed files with 325 additions and 113 deletions

View File

@@ -30,13 +30,13 @@
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(UserForm));
this.label1 = new System.Windows.Forms.Label();
this.textBox1 = new System.Windows.Forms.TextBox();
this.UsernameBox = new System.Windows.Forms.TextBox();
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.textBox2 = new System.Windows.Forms.TextBox();
this.textBox3 = new System.Windows.Forms.TextBox();
this.label2 = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
this.SavePasswordButton = new System.Windows.Forms.Button();
this.label3 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.PasswordAgainBox = new System.Windows.Forms.TextBox();
this.NewPasswordBox = new System.Windows.Forms.TextBox();
this.label4 = new System.Windows.Forms.Label();
this.groupBox1.SuspendLayout();
this.SuspendLayout();
@@ -46,21 +46,24 @@
this.label1.AutoSize = true;
this.label1.Font = new System.Drawing.Font("Segoe UI", 18F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.label1.ForeColor = System.Drawing.SystemColors.Highlight;
this.label1.Location = new System.Drawing.Point(12, 9);
this.label1.Location = new System.Drawing.Point(8, 6);
this.label1.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(287, 48);
this.label1.Size = new System.Drawing.Size(193, 32);
this.label1.TabIndex = 0;
this.label1.Text = "User information";
//
// textBox1
// UsernameBox
//
this.textBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
this.UsernameBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.textBox1.Location = new System.Drawing.Point(12, 122);
this.textBox1.Name = "textBox1";
this.textBox1.ReadOnly = true;
this.textBox1.Size = new System.Drawing.Size(543, 31);
this.textBox1.TabIndex = 1;
this.UsernameBox.CausesValidation = false;
this.UsernameBox.Location = new System.Drawing.Point(8, 81);
this.UsernameBox.Margin = new System.Windows.Forms.Padding(2);
this.UsernameBox.Name = "UsernameBox";
this.UsernameBox.ReadOnly = true;
this.UsernameBox.Size = new System.Drawing.Size(363, 23);
this.UsernameBox.TabIndex = 3;
//
// groupBox1
//
@@ -70,86 +73,101 @@
this.groupBox1.Controls.Add(this.SavePasswordButton);
this.groupBox1.Controls.Add(this.label3);
this.groupBox1.Controls.Add(this.label2);
this.groupBox1.Controls.Add(this.textBox3);
this.groupBox1.Controls.Add(this.textBox2);
this.groupBox1.Location = new System.Drawing.Point(12, 184);
this.groupBox1.Controls.Add(this.PasswordAgainBox);
this.groupBox1.Controls.Add(this.NewPasswordBox);
this.groupBox1.Location = new System.Drawing.Point(8, 123);
this.groupBox1.Margin = new System.Windows.Forms.Padding(2);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(543, 225);
this.groupBox1.Padding = new System.Windows.Forms.Padding(2);
this.groupBox1.Size = new System.Drawing.Size(362, 150);
this.groupBox1.TabIndex = 3;
this.groupBox1.TabStop = false;
this.groupBox1.Text = "Change password";
//
// textBox2
//
this.textBox2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.textBox2.Location = new System.Drawing.Point(6, 74);
this.textBox2.Name = "textBox2";
this.textBox2.Size = new System.Drawing.Size(531, 31);
this.textBox2.TabIndex = 0;
//
// textBox3
//
this.textBox3.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.textBox3.Location = new System.Drawing.Point(6, 135);
this.textBox3.Name = "textBox3";
this.textBox3.Size = new System.Drawing.Size(531, 31);
this.textBox3.TabIndex = 1;
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(6, 46);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(129, 25);
this.label2.TabIndex = 2;
this.label2.Text = "New password";
//
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(6, 108);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(207, 25);
this.label3.TabIndex = 3;
this.label3.Text = "The new password again";
//
// SavePasswordButton
//
this.SavePasswordButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.SavePasswordButton.Enabled = false;
this.SavePasswordButton.Location = new System.Drawing.Point(425, 185);
this.SavePasswordButton.Location = new System.Drawing.Point(283, 123);
this.SavePasswordButton.Margin = new System.Windows.Forms.Padding(2);
this.SavePasswordButton.Name = "SavePasswordButton";
this.SavePasswordButton.Size = new System.Drawing.Size(112, 34);
this.SavePasswordButton.TabIndex = 4;
this.SavePasswordButton.Size = new System.Drawing.Size(75, 23);
this.SavePasswordButton.TabIndex = 2;
this.SavePasswordButton.Text = "Save";
this.SavePasswordButton.UseVisualStyleBackColor = true;
this.SavePasswordButton.Click += new System.EventHandler(this.SavePasswordButton_Click);
//
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(4, 72);
this.label3.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(136, 15);
this.label3.TabIndex = 3;
this.label3.Text = "The new password again";
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(4, 31);
this.label2.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(84, 15);
this.label2.TabIndex = 2;
this.label2.Text = "New password";
//
// PasswordAgainBox
//
this.PasswordAgainBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.PasswordAgainBox.Location = new System.Drawing.Point(4, 90);
this.PasswordAgainBox.Margin = new System.Windows.Forms.Padding(2);
this.PasswordAgainBox.Name = "PasswordAgainBox";
this.PasswordAgainBox.Size = new System.Drawing.Size(355, 23);
this.PasswordAgainBox.TabIndex = 1;
this.PasswordAgainBox.UseSystemPasswordChar = true;
this.PasswordAgainBox.TextChanged += new System.EventHandler(this.NewPasswordBox_TextChanged);
//
// NewPasswordBox
//
this.NewPasswordBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.NewPasswordBox.Location = new System.Drawing.Point(4, 49);
this.NewPasswordBox.Margin = new System.Windows.Forms.Padding(2);
this.NewPasswordBox.Name = "NewPasswordBox";
this.NewPasswordBox.Size = new System.Drawing.Size(355, 23);
this.NewPasswordBox.TabIndex = 0;
this.NewPasswordBox.UseSystemPasswordChar = true;
this.NewPasswordBox.TextChanged += new System.EventHandler(this.NewPasswordBox_TextChanged);
//
// label4
//
this.label4.AutoSize = true;
this.label4.Location = new System.Drawing.Point(12, 94);
this.label4.Location = new System.Drawing.Point(8, 63);
this.label4.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(91, 25);
this.label4.Size = new System.Drawing.Size(60, 15);
this.label4.TabIndex = 4;
this.label4.Text = "Username";
//
// UserForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(144F, 144F);
this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
this.BackColor = System.Drawing.SystemColors.Window;
this.ClientSize = new System.Drawing.Size(567, 421);
this.ClientSize = new System.Drawing.Size(382, 292);
this.Controls.Add(this.label4);
this.Controls.Add(this.groupBox1);
this.Controls.Add(this.textBox1);
this.Controls.Add(this.UsernameBox);
this.Controls.Add(this.label1);
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MinimumSize = new System.Drawing.Size(589, 477);
this.Margin = new System.Windows.Forms.Padding(2);
this.MinimumSize = new System.Drawing.Size(398, 331);
this.Name = "UserForm";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Text = "User information";
this.Load += new System.EventHandler(this.UserForm_Load);
this.groupBox1.ResumeLayout(false);
this.groupBox1.PerformLayout();
this.ResumeLayout(false);
@@ -160,10 +178,10 @@
#endregion
private Label label1;
private TextBox textBox1;
private TextBox UsernameBox;
private GroupBox groupBox1;
private TextBox textBox2;
private TextBox textBox3;
private TextBox NewPasswordBox;
private TextBox PasswordAgainBox;
private Button SavePasswordButton;
private Label label3;
private Label label2;