Change password at first login. Do not accept no as an answer.

This commit is contained in:
Tim Young 2017-08-11 14:37:24 -05:00
parent 16c009b432
commit 6bfc101468
2 changed files with 4 additions and 0 deletions

View File

@ -1763,6 +1763,8 @@ namespace EduNetworkBuilder
CurrentUser = tUser; CurrentUser = tUser;
CurrentUser.filepath = Path.GetDirectoryName(filename); //store the directory CurrentUser.filepath = Path.GetDirectoryName(filename); //store the directory
OurSettings = NB.GetSettings(); //Grab the new settings from the user OurSettings = NB.GetSettings(); //Grab the new settings from the user
if (CurrentUser.ChangePassAtFirstLogin)
CurrentUser.ChangePassword(); //change the password
UpdateMenu(); UpdateMenu();
//Now, open a new window to edit them. //Now, open a new window to edit them.

View File

@ -133,6 +133,8 @@ namespace EduNetworkBuilder
continue; continue;
} }
ChangePassword(Password1); ChangePassword(Password1);
if (ChangePassAtFirstLogin) ChangePassAtFirstLogin = false;//It was done. No need to do it again.
done = true; done = true;
} }
} }