Fixed unencrypted password password window opening

pull/193/head
Ivan Dmitrievich Yartsev 10 months ago
parent 3685547489
commit 5886ddb846

@ -2673,6 +2673,11 @@ void on_main_edit(GtkWidget *, main_window *widgets){
}
if (!yon_char_is_empty(parameters[5])){
if (check_is_password_hash(parameters[5])){
if (yon_char_check_begins_with(parameters[5],"%%")==-1){
char *temp = yon_char_append("%%",parameters[5]);
free(parameters[5]);
parameters[5]=temp;
}
gtk_widget_set_sensitive(window->userSyncSAMBAPasswordCheck,0);
g_signal_handlers_block_by_func(G_OBJECT(window->userSyncSAMBACheck),G_CALLBACK(yon_gtk_widget_set_sensitive_from_toggle_button_inversed),window->userSyncSAMBAPasswordCheck);
}

Loading…
Cancel
Save