Get encryption working for teacher

This commit is contained in:
Tim Young 2017-08-09 17:01:30 -05:00
parent e6518e3918
commit 88a15caf88
2 changed files with 2 additions and 2 deletions

View File

@ -39,7 +39,7 @@ namespace EduNetworkBuilder
/// The AltPassword is mainly used to hold the admin decrypting password. The student account will /// The AltPassword is mainly used to hold the admin decrypting password. The student account will
/// use this to encrypt the student password, so the admin can open their file. /// use this to encrypt the student password, so the admin can open their file.
/// </summary> /// </summary>
string AltPassword = ""; public string AltPassword = "";
/// <summary> /// <summary>
/// Used to determine if the user we are working with is the admin account. /// Used to determine if the user we are working with is the admin account.
/// </summary> /// </summary>

View File

@ -921,7 +921,7 @@ namespace EduNetworkBuilder
if (File.Exists(FullName)) if (File.Exists(FullName))
{ {
// make temp person record // make temp person record
PersonClass tempStudent = new PersonClass(FullName); PersonClass tempStudent = PersonClass.TryLoad(FullName, storedStudent.AltPassword);
// loop through all networks // loop through all networks
foreach (SchoolworkClass SWC in tempStudent.Projects) foreach (SchoolworkClass SWC in tempStudent.Projects)
{ {