From bd416565c4dc77a127553a12c44c4bb68a898262 Mon Sep 17 00:00:00 2001 From: Ivan Yarcev Date: Wed, 3 Apr 2024 17:47:31 +0600 Subject: [PATCH] Test fix for password ripping --- source/ubl-settings-usergroups.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/ubl-settings-usergroups.c b/source/ubl-settings-usergroups.c index 9fa5836..983a806 100644 --- a/source/ubl-settings-usergroups.c +++ b/source/ubl-settings-usergroups.c @@ -1565,6 +1565,10 @@ void on_password_accept(GtkWidget *self, dictionary *dict){ char *pasted_hash = (char*)gtk_entry_get_text(GTK_ENTRY(window->PasswordHashEntry)); if (!yon_char_is_empty(pasted_hash)){ gtk_entry_set_text(entry,pasted_hash); + } else { + yon_ubl_status_highlight_incorrect(window->PasswordEntry); + yon_ubl_status_box_spawn(GTK_CONTAINER(window->StatusBox),PASSWORD_SHORT_LABEL(yon_char_from_int(main_config.password_min_length)),5,BACKGROUND_IMAGE_FAIL_TYPE); + return; } } else {