|
|
|
@ -35,9 +35,9 @@ void on_additional_settings_changed(GtkWidget *self, ubl_settings_usergroups_add
|
|
|
|
}
|
|
|
|
}
|
|
|
|
char *default_password = NULL;
|
|
|
|
char *default_password = NULL;
|
|
|
|
int user_password_active = gtk_combo_box_get_active(GTK_COMBO_BOX(window->DefaultPasswordCombo));
|
|
|
|
int user_password_active = gtk_combo_box_get_active(GTK_COMBO_BOX(window->DefaultPasswordCombo));
|
|
|
|
if (user_password_active==2)
|
|
|
|
if (user_password_active==1)
|
|
|
|
default_password=(char*)gtk_entry_get_text(GTK_ENTRY(window->DefaultPasswordEntry));
|
|
|
|
default_password=(char*)gtk_entry_get_text(GTK_ENTRY(window->DefaultPasswordEntry));
|
|
|
|
else if (user_password_active==1)
|
|
|
|
else if (user_password_active==2)
|
|
|
|
default_password=" ";
|
|
|
|
default_password=" ";
|
|
|
|
else if (user_password_active==3){
|
|
|
|
else if (user_password_active==3){
|
|
|
|
default_password="!*";
|
|
|
|
default_password="!*";
|
|
|
|
@ -51,9 +51,9 @@ void on_additional_settings_changed(GtkWidget *self, ubl_settings_usergroups_add
|
|
|
|
}
|
|
|
|
}
|
|
|
|
char *root_password = NULL;
|
|
|
|
char *root_password = NULL;
|
|
|
|
int root_password_active = gtk_combo_box_get_active(GTK_COMBO_BOX(window->RootPasswordCombo));
|
|
|
|
int root_password_active = gtk_combo_box_get_active(GTK_COMBO_BOX(window->RootPasswordCombo));
|
|
|
|
if (root_password_active==2)
|
|
|
|
if (root_password_active==1)
|
|
|
|
root_password=(char*)gtk_entry_get_text(GTK_ENTRY(window->RootPasswordCombo));
|
|
|
|
root_password=(char*)gtk_entry_get_text(GTK_ENTRY(window->RootPasswordCombo));
|
|
|
|
else if (root_password_active==1)
|
|
|
|
else if (root_password_active==2)
|
|
|
|
root_password=" ";
|
|
|
|
root_password=" ";
|
|
|
|
if (!yon_char_is_empty(root_password)){
|
|
|
|
if (!yon_char_is_empty(root_password)){
|
|
|
|
if (window->default_root_password)
|
|
|
|
if (window->default_root_password)
|
|
|
|
@ -674,21 +674,21 @@ ubl_settings_usergroups_additional_settings_window *yon_ubl_settings_usergroups_
|
|
|
|
char *default_password = yon_config_get_by_key(DEFAULTPASSWD_parameter);
|
|
|
|
char *default_password = yon_config_get_by_key(DEFAULTPASSWD_parameter);
|
|
|
|
if (!yon_char_is_empty(default_password)){
|
|
|
|
if (!yon_char_is_empty(default_password)){
|
|
|
|
if (!strcmp(default_password," ")){
|
|
|
|
if (!strcmp(default_password," ")){
|
|
|
|
gtk_combo_box_set_active(GTK_COMBO_BOX(window->DefaultPasswordCombo),1);
|
|
|
|
gtk_combo_box_set_active(GTK_COMBO_BOX(window->DefaultPasswordCombo),2);
|
|
|
|
} else if (!strcmp(default_password,"!*")){
|
|
|
|
} else if (!strcmp(default_password,"!*")){
|
|
|
|
gtk_combo_box_set_active(GTK_COMBO_BOX(window->DefaultPasswordCombo),3);
|
|
|
|
gtk_combo_box_set_active(GTK_COMBO_BOX(window->DefaultPasswordCombo),3);
|
|
|
|
|
|
|
|
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
gtk_combo_box_set_active(GTK_COMBO_BOX(window->DefaultPasswordCombo),2);
|
|
|
|
gtk_combo_box_set_active(GTK_COMBO_BOX(window->DefaultPasswordCombo),1);
|
|
|
|
gtk_entry_set_text(GTK_ENTRY(window->DefaultPasswordEntry),default_password);
|
|
|
|
gtk_entry_set_text(GTK_ENTRY(window->DefaultPasswordEntry),default_password);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
char *root_password = yon_config_get_by_key(DEFAULTROOTPASSWD_parameter);
|
|
|
|
char *root_password = yon_config_get_by_key(DEFAULTROOTPASSWD_parameter);
|
|
|
|
if (!yon_char_is_empty(root_password)){
|
|
|
|
if (!yon_char_is_empty(root_password)){
|
|
|
|
if (!strcmp(root_password," ")){
|
|
|
|
if (!strcmp(root_password," ")){
|
|
|
|
gtk_combo_box_set_active(GTK_COMBO_BOX(window->RootPasswordCombo),1);
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
gtk_combo_box_set_active(GTK_COMBO_BOX(window->RootPasswordCombo),2);
|
|
|
|
gtk_combo_box_set_active(GTK_COMBO_BOX(window->RootPasswordCombo),2);
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
gtk_combo_box_set_active(GTK_COMBO_BOX(window->RootPasswordCombo),1);
|
|
|
|
gtk_entry_set_text(GTK_ENTRY(window->DefaultPasswordEntry),root_password);
|
|
|
|
gtk_entry_set_text(GTK_ENTRY(window->DefaultPasswordEntry),root_password);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|