Please create and finish all the methods needed for frmCreateAccount
Please implement the following:
The EmployeeNumber entry may only contain numbers and this must be check on textchanged
the username must be only characters and no numbers
the password and confirmpassword fields must switch to passchar when they click on it and if they exit it with nothing entered it should change to no passchar and display Password and ConfirmPassword
Administrator code can only be numbers and must also be done on textchanged
If the user clicks create account and not all fields are displayed show message indicating which field is missing
password and confirmpassword must match
Reset button will reset all edits to default and set focus to the username
On form load get amount of records in tblEmployee and then when the user inputs employeenumber it must not be bigger than that amount and must be bigger than 0
When creating account check if there is already not a user for that employee in tblUser and if there is display message saying that you already have account
If all is good you must check the Administrator code is equal to a set value which we will define in hardcode for now
Now if all is good create account and log them in by displaying frmDashBoard
Before you insert please create Salt for them by Calling method CreateSalt:
private String CreateSalt(int size)
{
var rng = new RNGCryptoServiceProvider();
var buff = new byte[size];
rng.GetBytes(buff);
return Convert.ToBase64String(buff);
}
Store that salt in local var and also in object of User
Now use that salt and the users password which they entered and create a hash by calling CreateSHA256Hash Method:
Hi There
Please create and finish all the methods needed for frmCreateAccount
Please implement the following:
Store that salt in local var and also in object of User Now use that salt and the users password which they entered and create a hash by calling CreateSHA256Hash Method:
Then store that hash password inside the object and now create account
PS!! Please Loop through program from going from Presentation Layer ---> Business Access Layer - Dataaccess layer so that bubbling it implemented