Get encryption working for teacher
This commit is contained in:
		@@ -39,7 +39,7 @@ namespace EduNetworkBuilder
 | 
			
		||||
        /// 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.
 | 
			
		||||
        /// </summary>
 | 
			
		||||
        string AltPassword = "";
 | 
			
		||||
        public string AltPassword = "";
 | 
			
		||||
        /// <summary>
 | 
			
		||||
        /// Used to determine if the user we are working with is the admin account.
 | 
			
		||||
        /// </summary>
 | 
			
		||||
 
 | 
			
		||||
@@ -921,7 +921,7 @@ namespace EduNetworkBuilder
 | 
			
		||||
                    if (File.Exists(FullName))
 | 
			
		||||
                    {
 | 
			
		||||
                        //   make temp person record
 | 
			
		||||
                        PersonClass tempStudent = new PersonClass(FullName);
 | 
			
		||||
                        PersonClass tempStudent = PersonClass.TryLoad(FullName, storedStudent.AltPassword);
 | 
			
		||||
                        //   loop through all networks
 | 
			
		||||
                        foreach (SchoolworkClass SWC in tempStudent.Projects)
 | 
			
		||||
                        {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user