/// <summary> /// change the password of the current user /// </summary> public static void SetUserPassword(Form AParentForm) { string username = Ict.Petra.Shared.UserInfo.GUserInfo.UserID; // TODO: use old password as well, to make sure the password is changed by its owner PetraInputBox input = new PetraInputBox( Catalog.GetString("Change your password"), Catalog.GetString("Please enter the old password:"******"", true); if (input.ShowDialog() == DialogResult.OK) { TLoginForm.CreateNewPassword(username, input.GetAnswer(), false); } }
/// <summary> /// change the password of the current user /// </summary> public static void SetUserPassword(Form AParentForm) { string username = Ict.Petra.Shared.UserInfo.GUserInfo.UserID; TLoginForm.CreateNewPassword(AParentForm, username, string.Empty, false); }