|
|
|
@ -266,7 +266,7 @@ void on_expiration_clicked(GtkWidget *self, ubl_settings_usergroups_user_window
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
yon_config_register("ADDADM","users","no");
|
|
|
|
yon_config_register("ADDADM","users","no");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
char *hash = (char*)gtk_combo_box_text_get_active_text(GTK_COMBO_BOX_TEXT(window->PasswordHashCombo));
|
|
|
|
char *hash = (char*)gtk_combo_box_get_active_id(GTK_COMBO_BOX(window->PasswordHashCombo));
|
|
|
|
if (!yon_char_is_empty(hash)){
|
|
|
|
if (!yon_char_is_empty(hash)){
|
|
|
|
yon_config_register("HASHPASSWD","users",hash);
|
|
|
|
yon_config_register("HASHPASSWD","users",hash);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@ -312,7 +312,7 @@ ubl_settings_usergroups_additional_settings_window *yon_ubl_settings_usergroups_
|
|
|
|
if (hash_algos[i][strlen(hash_algos[i])-1]=='\n') hash_algos[i][strlen(hash_algos[i])-1]='\0';
|
|
|
|
if (hash_algos[i][strlen(hash_algos[i])-1]=='\n') hash_algos[i][strlen(hash_algos[i])-1]='\0';
|
|
|
|
int parsed_size;
|
|
|
|
int parsed_size;
|
|
|
|
config_str parsed = yon_char_parse(hash_algos[i],&parsed_size,";");
|
|
|
|
config_str parsed = yon_char_parse(hash_algos[i],&parsed_size,";");
|
|
|
|
gtk_combo_box_text_append_text(GTK_COMBO_BOX_TEXT(window->PasswordHashCombo),parsed[0]);
|
|
|
|
gtk_combo_box_text_append(GTK_COMBO_BOX_TEXT(window->PasswordHashCombo),parsed[0],parsed[1]);
|
|
|
|
gtk_widget_set_tooltip_text(window->PasswordHashCombo,parsed[1]);
|
|
|
|
gtk_widget_set_tooltip_text(window->PasswordHashCombo,parsed[1]);
|
|
|
|
yon_char_parsed_free(parsed,parsed_size);
|
|
|
|
yon_char_parsed_free(parsed,parsed_size);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@ -340,7 +340,7 @@ ubl_settings_usergroups_additional_settings_window *yon_ubl_settings_usergroups_
|
|
|
|
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(window->DefaultUserAdministratorCheck),1);
|
|
|
|
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(window->DefaultUserAdministratorCheck),1);
|
|
|
|
char *hash = yon_config_get_by_key("HASHPASSWD");
|
|
|
|
char *hash = yon_config_get_by_key("HASHPASSWD");
|
|
|
|
if (!yon_char_is_empty(hash)){
|
|
|
|
if (!yon_char_is_empty(hash)){
|
|
|
|
gtk_combo_box_set_active(GTK_COMBO_BOX(window->PasswordHashCombo),yon_gtk_combo_box_text_find(window->PasswordHashCombo,hash));
|
|
|
|
gtk_combo_box_set_active_id(GTK_COMBO_BOX(window->PasswordHashCombo),hash);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -1695,8 +1695,6 @@ int main(int argc, char *argv[]){
|
|
|
|
template_main_window *widgets = yon_ubl_window_setup();
|
|
|
|
template_main_window *widgets = yon_ubl_window_setup();
|
|
|
|
textdomain (LocaleName);
|
|
|
|
textdomain (LocaleName);
|
|
|
|
yon_main_window_complete((main_window*)widgets);
|
|
|
|
yon_main_window_complete((main_window*)widgets);
|
|
|
|
yon_config_set_ignore("DEFAULTPASSWD");
|
|
|
|
|
|
|
|
yon_config_set_ignore("DEFAULTROOTPASSWD");
|
|
|
|
|
|
|
|
yon_window_config_load(config_path);
|
|
|
|
yon_window_config_load(config_path);
|
|
|
|
gtk_main();
|
|
|
|
gtk_main();
|
|
|
|
}
|
|
|
|
}
|