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.filepath = Path.GetDirectoryName(filename); //store the directory
OurSettings = NB.GetSettings(); //Grab the new settings from the user
if (CurrentUser.ChangePassAtFirstLogin)
CurrentUser.ChangePassword(); //change the password
UpdateMenu();
//Now, open a new window to edit them.

View File

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