From 30e8a5c2921a6322d271c04ebddfa9fbf87345cd Mon Sep 17 00:00:00 2001 From: AfonsoCMSousa Date: Thu, 27 Feb 2025 12:20:27 +0000 Subject: [PATCH] Updated "prompPassword" to include custom message. --- include/ui/ui.c | 4 ++-- include/ui/ui.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/ui/ui.c b/include/ui/ui.c index a790bac..83c0ecd 100644 --- a/include/ui/ui.c +++ b/include/ui/ui.c @@ -2,11 +2,11 @@ #include "herror.h" #include "dynmem.h" -int prompPassword(char *password) +int prompPassword(char *password, const char *msg) { struct termios oldt, newt; - printf("Please enter your unique password:"); + printf(msg); try { // Disable echo diff --git a/include/ui/ui.h b/include/ui/ui.h index eab3f4a..ff0d0b8 100644 --- a/include/ui/ui.h +++ b/include/ui/ui.h @@ -8,7 +8,7 @@ #include "ui.c" -int prompPassword(char *password); +int prompPassword(char *password, const char *msg); char *prompNormalRequest(char *message); #endif // !UI_H \ No newline at end of file