Added email as key creation restriction

pull/108/head
parent 3fe841179a
commit bf1ee25b4a
No known key found for this signature in database
GPG Key ID: FF1D842BF4DDE92B

@ -16,6 +16,11 @@ void on_key_generate_accept(GtkWidget *self, key_creation_window* window){
yon_ubl_status_highlight_incorrect(window->NameEntry);
return;
}
if (!yon_char_is_empty(email)&&strlen(email)<5){
yon_ubl_status_box_spawn(GTK_CONTAINER(window->StatusBox),NAME_SHORT_LABEL,5,BACKGROUND_IMAGE_FAIL_TYPE);
yon_ubl_status_highlight_incorrect(window->EmailEntry);
return;
}
GtkWidget *highlight_target=NULL;
if (yon_char_is_empty(name)){
highlight_target=window->NameEntry;

Loading…
Cancel
Save