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
 | 
					        /// 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>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -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)
 | 
				
			||||||
                        {
 | 
					                        {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user