Change password at first login. Do not accept no as an answer.
This commit is contained in:
parent
16c009b432
commit
6bfc101468
@ -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.
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user