хотфикс
This commit is contained in:
parent
fe4e192538
commit
46cc1d3463
@ -45,6 +45,9 @@ namespace AwesomeEmailExtractor
|
||||
|
||||
User editedUser = new User(User.ID, loginTextBox.Text, (UserRoles)roleComboBox.SelectedIndex);
|
||||
|
||||
try
|
||||
{
|
||||
|
||||
if (passwordTextBox.Text != "")
|
||||
{
|
||||
adminUtils.editUser(editedUser, passwordTextBox.Text);
|
||||
@ -54,6 +57,12 @@ namespace AwesomeEmailExtractor
|
||||
|
||||
adminUtils.editUser(editedUser);
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
MessageBox.Show(ex.Message, "Ошибка", MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||
return;
|
||||
}
|
||||
|
||||
this.Close();
|
||||
}
|
||||
|
Reference in New Issue
Block a user